Name
TreeWalker — traverse a filtered document subtree
Availability
DOM Level 2 Traversal
Properties
-
NodecurrentNode The current position of this TreeWalker and the node relative to which all of the TreeWalker traversal methods operate. This is the node most recently returned by one of those traversal methods or, if none of those methods have been called yet, it is the same as the
rootproperty.
Note that this is a read/write property, and you can set it to any
valid Document node -- even one that is not a descendant of the
original root node or one that would be rejected
by the filters used by this TreeWalker. If you change the value of
this property, the traversal methods operate relative to the new node
you specify. Attempting to set this property to
null throws a DOMException with a
code of NOT_SUPPORTED_ERR.
-
readonly boolean expandEntityReferences This read-only property specifies whether this TreeWalker object expands entity references it encounters while traversing XML documents. The value of this property is set by the call to
Document.createTreeWalker( ).-
readonlyNodeFilterfilter The node filter function, if any, that was specified for this TreeWalker in the call to
Document.createTreeWalker( ). If no node filter is in use, this property isnull.-
readonlyNoderoot This read-only property specifies the
rootnode at which the TreeWalker begins traversal. It is the initial value of thecurrentNodeproperty and is specified in the call toDocument.createTreeWalker( ...