We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

NodeIterator.root Redirect 1

« DOM Reference « NodeIterator

The NodeIterator.root read-only property represents the Node that is the root of what the NodeIterator traverses.


root = nodeIterator.root;


var nodeIterator = document.createNodeIterator(
    { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } },
root = nodeIterator.root; // document.body in this case


Specification Status Comment
DOM Living Standard No change from Document Object Model (DOM) Level 2 Traversal and Range Specification.
Document Object Model (DOM) Level 2 Traversal and Range Specification Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 3.5 (1.9.1) 9.0 9.0 3.0
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.9.1) (Yes) 9.0 3.0

See also

Document Tags and Contributors

Last updated by: Sheppy,