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