docs.rodeo

MDN Web Docs mirror

NodeIterator

{{APIRef("DOM")}} 

The NodeIterator interface represents an iterator to traverse nodes of a DOM subtree in document order.

A NodeIterator can be created using the {{domxref("Document.createNodeIterator()")}}  method, as follows:

const nodeIterator = document.createNodeIterator(root, whatToShow, filter);

Instance properties

This interface doesn’t inherit any property.

Instance methods

This interface doesn’t inherit any method.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN