
## parent_node {#}

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.


### Returns 


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


```python
def parent_node(self):
    ...
```





### See Also
* module [`aspose.html.dom.traversal`](../../)
* class [`ITreeWalker`](/html/python-net/aspose.html.dom.traversal/itreewalker)
