/src/main/java/org/htmlunit/html/DomText.java
if ( ( offset < 0) || ( offset > ( getLength( ) ) ) ) {   throw new IllegalArgumentException( ( ( ( "offset: " + offset) + " data.length: ") + ( getLength( ) ) ) ) ; }
[Delete]
public DomText(final SgmlPage page, final String data) { super(page, data); } @Override public DomText splitText(final int offset) { if (offset < 0 || offset > getLength()) { <extra_id_0> } final DomText newText = createSplitTextNode(offset); setData(getData().substring(0, offset)); if (getParentNode() != null) { getParentNode().insertBefore(newText, getNextSibling()); }