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