/src/main/java/org/htmlunit/html/impl/SimpleRange.java
else if ( start.getChildNodes( ).length( ) > startOffset_) {
else if ( startContainer_.getChildNodes ( ) .getLength ( ) > startOffset_ ) {
String text = getText(start); if (startOffset_ > -1 && startOffset_ < text.length()) { text = text.substring(0, startOffset_); } setText(start, text); } <extra_id_0> start = (DomNode) startContainer_.getChildNodes().item(startOffset_); } else { start = startContainer_.getNextSibling(); } if (isOffsetChars(endContainer_)) {