diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/fr/web/api/nodeiterator/referencenode | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/fr/web/api/nodeiterator/referencenode')
-rw-r--r-- | files/fr/web/api/nodeiterator/referencenode/index.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/files/fr/web/api/nodeiterator/referencenode/index.html b/files/fr/web/api/nodeiterator/referencenode/index.html new file mode 100644 index 0000000000..b138a52723 --- /dev/null +++ b/files/fr/web/api/nodeiterator/referencenode/index.html @@ -0,0 +1,60 @@ +--- +title: NodeIterator.referenceNode +slug: Web/API/NodeIterator/referenceNode +tags: + - API + - Arborescence + - DOM + - Itérateur + - Noeuds + - Propriétés +translation_of: Web/API/NodeIterator/referenceNode +--- +<p>{{APIRef("DOM")}}{{ SeeCompatTable }}</p> + +<p>La propriété en lecture seule <strong><code>NodeIterator.referenceNode</code></strong> renvoie le {{domxref("Node")}} auquel l'itérateur est ancré ; si de nouveaux noeuds sont insérés, l'itérateur reste ancré au noeud de référence spécifié par cette propriété.</p> + +<h2 id="Syntax" name="Syntax">Syntaxe</h2> + +<pre class="syntaxbox"><em>node</em> = <em>nodeIterator</em>.referenceNode; +</pre> + +<h2 id="Example" name="Example">Exemple</h2> + +<pre class="brush: js">var nodeIterator = document.createNodeIterator( + document.body, + NodeFilter.SHOW_ELEMENT, + { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } }, + false +); +node = nodeIterator.referenceNode; +</pre> + +<h2 id="Specification" name="Specification">Spécifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Spécification</th> + <th scope="col">Statut</th> + <th scope="col">Commentaire</th> + </tr> + <tr> + <td>{{SpecName('DOM WHATWG', '#dom-nodeiterator-referencenode', 'NodeIterator.referenceNode')}}</td> + <td>{{Spec2('DOM WHATWG')}}</td> + <td>Définition initiale.</td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> + + + +<p>{{Compat("api.NodeIterator.referenceNode")}}</p> + +<h2 id="Voir_aussi">Voir aussi</h2> + +<ul> + <li>L'interface à laquelle elle appartient : {{domxref("NodeIterator")}}</li> +</ul> |