/src/main/java/org/htmlunit/html/DomNodeIterator.java
if ( follow != null) {
if ( left == null ) {
} } } else { if (beforeNode) { final DomNode left = getSibling(node, true); <extra_id_0> final Node parent = node.getParentNode(); if (parent == null) { node = null; } } DomNode follow = left;