/src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java
if ( currentNode_ == root_ ) { return null; }
if (newNode != null) { currentNode_ = newNode; } return newNode; } public DomNode parentNode() { <extra_id_0> DomNode newNode = currentNode_; do { newNode = newNode.getParentNode(); } while (newNode != null && !isNodeVisible(newNode) && newNode != root_); if (newNode == null || !isNodeVisible(newNode)) {