La propriété en lecture seule NodeIterator.root
représente le Node
qui est la racine de ce que le NodeIterator
traverse.
Syntaxe
root = nodeIterator.root;
Exemple
var nodeIterator = document.createNodeIterator( document.body, NodeFilter.SHOW_ELEMENT, { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } }, false ); root = nodeIterator.root; // document.body dans ce cas
Spécifications
Spécification | Statut | Commentaire |
---|---|---|
DOM La définition de 'NodeIterator.root' dans cette spécification. |
Standard évolutif | Pas de changement de Document Object Model (DOM) Level 2 Traversal and Range Specification. |
Document Object Model (DOM) Level 2 Traversal and Range Specification La définition de 'NodeIterator.root' dans cette spécification. |
Obsolete | Définition initiale. |
Compatibilité des navigateurs
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Fonctionnalité | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Support simple | 1 | 12 | 3.5 | 9 | 9 | 3 |
Fonctionnalité | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera Android | iOS Safari | Samsung Internet |
---|---|---|---|---|---|---|---|
Support simple | Oui | Oui | Oui | 4 | 9 | 3 | Oui |
Voir aussi
- L'interface à laquelle elle appartient :
NodeIterator
.