/src/main/java/org/htmlunit/html/impl/SimpleRange.java
end = ( DomNode) start.getChildNodes( ).item( endOffset_) ;
end = ( DomNode ) endContainer_.getChildNodes ( ) .item ( endOffset_ ) ;
if (endOffset_ > -1 && endOffset_ < text.length()) { text = text.substring(endOffset_); } setText(end, text); } else if (endContainer_.getChildNodes().getLength() > endOffset_) { <extra_id_0> } else { end = endContainer_.getNextSibling(); } boolean foundStart = false; boolean started = false;