NodeIterator : Object

Iterates through a set of Document nodes.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
no1.0+7.0+nonono

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Iterates through a set of Document nodes.
no1.0+7.0+nonono
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
If true, indicates that the NodeIterator traverses the children of EntityReference nodes.
no1.0+7.0+nonono
 
Node filter function associated with the NodeIterator.
no1.0+7.0+nonono
 
Root node for the NodeIterator to start iterating with.
no1.0+7.0+nonono
 
Set of flags specifying which nodes to include in the node filter.
no1.0+7.0+nonono
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Detaches the NodeIterator from the document.
no1.0+7.0+nonono
 
Returns the next node in the filtered set of nodes.
no1.0+7.0+nonono
 
Returns the previous node in the filtered set of nodes.
no1.0+7.0+nonono
 

References

NodeFilter | TreeWalker

Availability

W3C | HTML DOM Level 2

Constructor Detail

NodeIterator NodeIterator()

Iterates through a set of Document nodes.

Visibility
internal

Property Detail

Boolean expandEntityReferences - read only

If true, indicates that the NodeIterator traverses the children of EntityReference nodes.

Availability

HTML DOM Level 2 | W3C

NodeFilter filter - read only

Node filter function associated with the NodeIterator.

Availability

HTML DOM Level 2 | W3C

Node root - read only

Root node for the NodeIterator to start iterating with.

Availability

HTML DOM Level 2 | W3C

Number whatToShow - read only

Set of flags specifying which nodes to include in the node filter.

Availability

HTML DOM Level 2 | W3C

Method Detail

detach() : void

Detaches the NodeIterator from the document.

Availability

HTML DOM Level 2 | W3C

nextNode() : static Node

Returns the next node in the filtered set of nodes.

Availability

HTML DOM Level 2 | W3C

previousNode() : static Node

Returns the previous node in the filtered set of nodes.

Availability

HTML DOM Level 2 | W3C