Creates a new TreeWalker instance.
A root Node of this TreeWalker traversal.
Optional
whatToShow: numberA unsigned long representing a bitmask created by combining the constant properties of NodeFilter.
A NodeFilter, that is an object with a method acceptNode
, which is called by the
TreeWalker to determine whether to accept a node that has passed the whatToShow
check.
TreeWalker.currentNode on MDN
Readonly
filterTreeWalker.filter on MDN
Readonly
rootTreeWalker.root on MDN
Readonly
whatTreeWalker.whatToShow on MDN
TreeWalker.firstChild on MDN
TreeWalker.lastChild on MDN
TreeWalker.nextNode on MDN
TreeWalker.nextSibling on MDN
TreeWalker.parentNode on MDN
TreeWalker.previousNode on MDN
TreeWalker.previousSibling on MDN
Implemented according to https://dom.spec.whatwg.org/#treewalker
See
TreeWalker on MDN