|
|
|
|
|
<htmlNode variable>.Wrap (Function) In french: <Variable htmlNoeud>.Encadre Wraps the specified node in a given node of an HTML document. hDoc is htmlDocument = "
<html>
<head/>
<body>
<h1></h1><div id="div">
<p>Texte</p>
<p>Texte2</p>
</div><h3></h3>
</body>
</html>
"
hNoeud is htmlNode <- hDoc.ChercheElémentParID("div")
hNoeudInsertion is htmlNode
hNoeudInsertion..TagName = "h2"
hNoeud.Encadre(hNoeudInsertion)
Trace(hDoc)
hNoeudInsertion..TagName = "span"
hNoeud.EncadreTousLesFils(hNoeudInsertion)
Trace(hDoc)
hNoeud.DésencadreTousLesFils()
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>.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|