Iterates through a set of Document nodes.
Platform Support
IE | Mozilla | Netscape | Opera | Safari | no | 1.0+ | 7.0+ | no | no |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
NodeIterator Constructor() : NodeIterator
Iterates through a set of Document nodes.
|
Show Details | no | 1.0+ | 7.0+ | no | no | ||
NodeIterator() : NodeIteratorIterates through a set of Document nodes. Returns
|
Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
expandEntityReferences
: Boolean
If true, indicates that the NodeIterator traverses the children of EntityReference nodes.
|
Show Details | no | 1.0+ | 7.0+ | no | no |
|
||||||
filter
: NodeFilter
Node filter function associated with the NodeIterator.
|
Show Details | no | 1.0+ | 7.0+ | no | no |
|
||||||
root
: Node
Root node for the NodeIterator to start iterating with.
|
Show Details | no | 1.0+ | 7.0+ | no | no |
|
||||||
whatToShow
: Number
Set of flags specifying which nodes to include in the node filter.
|
Show Details | no | 1.0+ | 7.0+ | no | no |
|
Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
detach() : void
Detaches the NodeIterator from the document.
|
Show Details | no | 1.0+ | 7.0+ | no | no | ||
Returns
|
||||||||
static nextNode() : Node
Returns the next node in the filtered set of nodes.
|
Show Details | no | 1.0+ | 7.0+ | no | no | ||
Returns
|
||||||||
static previousNode() : Node
Returns the previous node in the filtered set of nodes.
|
Show Details | no | 1.0+ | 7.0+ | no | no | ||
Returns
|
References
Availability
W3C|HTML DOM Level 2