ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Wraps the specified node in a given node of an HTML document.
Example
hDoc is htmlDocument = "
<html>
<head/>
<body>
<h1></h1><div id="div">
<p>Text</p>
<p>Texte2</p>
</div><h3></h3>
</body>
</html>
"
hNode is htmlNode <- hDoc.ChercheElémentParID("div")
hNodeInsert is htmlNode
 
hNodeInsert..TagName = "h2"
hNode.Wrap(hNodeInsert)
// body: <h1/><h2><div id="div"><p>Text1</p><p>Text2</p></div></h2><h3/>
Trace(hDoc)
hNodeInsert..TagName = "span"
hNode.WrapAllChildren(hNodeInsert)
// body: <h1/><h2><div id="div"><span><p>Text1</p><p>Text2</p></span></div></h2><h3/>
Trace(hDoc)
hNode.UnwrapAllChildren(hNodeInsert)
// body: <h1/><h2><span><p>Text1</p><p>Text2</p></span></h2><h3/>Trace(hDoc)
Syntax
<Source node>.Wrap(<Wrapping node>)
<Source node>: htmlNode variable
Name of the htmlNode variable that corresponds to the reference node.
<Wrapping node>: htmlNode variable
Name of the htmlNode variable that corresponds to the node that wraps the <Source node>.
Component: wd290html.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help