ZVON > References > DOM2 Reference

currentNode (attribute )

Owning interface and usage:  
TreeWalker.currentNode

Member of these other interfaces:  
none

Readonly:   no

Type:   Node

Description:  
The node at which the TreeWalker is currently positioned.
Alterations to the DOM tree may cause the current node to no longer be accepted by the TreeWalker's associated filter. currentNode may also be explicitly set to any node, whether or not it is within the subtree specified by the root node or would be accepted by the filter and whatToShow flags. Further traversal occurs relative to currentNode even if it is not part of the current view, by applying the filters in the requested direction; if no traversal is possible, currentNode is not changed.

Exception:  
DOMException NOT_SUPPORTED_ERR
Raised if an attempt is made to set currentNode to null.