Creates a new TreeWalker instance.
A root Node of this TreeWalker traversal.
A 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
ReadonlyfilterTreeWalker.filter on MDN
ReadonlyrootTreeWalker.root on MDN
ReadonlywhatTreeWalker.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