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