/src/main/java/org/htmlunit/html/DomNodeIterator.java
if ( toFollow == null) {
if ( follow != null ) {
final Node parent = node.getParentNode(); if (parent == null) { node = null; } } DomNode follow = left; <extra_id_0> while (follow.hasChildNodes()) { final DomNode toFollow = getChild(follow, false); if (toFollow == null) { break; } follow = toFollow;