/src/main/java/org/htmlunit/html/impl/SimpleRange.java
if ( startOffset_ > -1 && startOffset_ < text.length( ) ) { text = getText( split) ;
text = getText ( split ) ; if ( startOffset_ > -1 && startOffset_ < text.length ( ) ) {
final DomNode split = startContainer_.cloneNode(false); String text = getText(startContainer_); if (startOffset_ > -1 && startOffset_ < text.length()) { text = text.substring(0, startOffset_); } setText(startContainer_, text); <extra_id_0> text = text.substring(startOffset_); } setText(split, text); insertNodeOrDocFragment(startContainer_.getParentNode(), split, startContainer_.getNextSibling()); insertNodeOrDocFragment(startContainer_.getParentNode(), newNode, split); }