Allows you to create iterators and tree-walkers to traverse the nodes of a Document.
Platform Support
IE | Mozilla | Netscape | Opera | Safari | no | 1.0+ | 2.0+ | no | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
DocumentTraversal Constructor() : DocumentTraversal
Allows you to create iterators and tree-walkers to traverse the nodes of a Document.
|
Show Details | no | 1.0+ | 2.0+ | no | 1.0+ | ||
DocumentTraversal() : DocumentTraversalAllows you to create iterators and tree-walkers to traverse the nodes of a Document. Returns
|
Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
createNodeIterator(Node root, Number whatToShow, [NodeFilter filter,] [Boolean entityReferenceExpansion]) : NodeIterator
Creates a new NodeIterator for the subtree at the specified node.
|
Show Details | no | 1.0+ | 2.0+ | no | 1.0+ | ||||||||||||||
Parameters
Returns
|
||||||||||||||||||||
createTreeWalker(Node root, Number whatToShow, [NodeFilter filter,] [Boolean entityReferenceExpansion]) : TreeWalker
Creates a new TreeWalker for the subtree at the specified node.
|
Show Details | no | 1.0+ | 2.0+ | no | 1.0+ | ||||||||||||||
Parameters
Returns
|
Availability
HTML DOM Level 2|W3C