ZVON > References > DOM2 Reference

parentNode (method )

Owning interface and usage:  
TreeWalker.parentNode()

Member of these other interfaces:  
none

Description:  
Moves to and returns the closest visible ancestor node of the current node. If the search for parentNode() attempts to step upward from the TreeWalker's root node, or if it fails to find a visible ancestor node, this method retains the current position and returns null.

Parameters:  
none

Returns:  
Node -  The new parent node, or null if the current node has no parent in the TreeWalker's logical view.

Exceptions:  
none