The NodeIterator.root read-only property represents the Node that is the root of what the NodeIterator traverses.
Property of dom/NodeIteratordom/NodeIterator
SyntaxNote: This property is read-only.
var node = element.root;
Return Value
Returns an object of type DOM NodeDOM Node
Examplesvar nodeIterator = document.createNodeIterator(
document.body,
NodeFilter.SHOW_ELEMENT,
{ acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } },
false
);
root = nodeIterator.root;
Syntax
root = nodeIterator.root;
Standards information Related specificationsMozilla Developer Network : [NodeIterator.root Article]
Microsoft Developer Network: [root Property Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4