|
|
|
|
|
HTMLWrapAllChildren (Function) In french: HTMLEncadreTousLesFils Wraps all children of the given node in a new node in an HTML document. hDoc is htmlDocument = "
<html>
<head/>
<body>
<h1></h1><div id="div">
<p>Texte1</p>
<p>Texte2</p>
</div><h3></h3>
</body>
</html>
"
hNoeud is htmlNode <- HTMLChercheElémentParID(hDoc, "div")
hNoeudInsertion is htmlNode
hNoeudInsertion..TagName = "h2"
HTMLWrap(hNoeud, hNoeudInsertion)
Trace(hDoc)
hNoeudInsertion..TagName = "span"
HTMLWrapAllChildren(hNoeud, hNoeudInsertion)
Trace(hDoc)
HTMLUnwrapAllChildren(hNoeud)
Trace(hDoc)
Syntax
HTMLWrapAllChildren(<Source node> , <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 corresponding to the node that wraps the children of the <Source node>. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|