/src/main/java/org/htmlunit/html/impl/SimpleRange.java
for ( final DomNode n : ancestor.getDescendants ( ) ) { if ( n == end ) { break; }
} else { end = endContainer_.getNextSibling(); } boolean foundStart = false; boolean started = false; <extra_id_0> if (n == start) { foundStart = true; } if (foundStart && (n != start || !isOffsetChars(startContainer_))) { started = true; }