/src/main/java/org/htmlunit/html/impl/SimpleRange.java
text = text.substring ( 0, offset ) ;
} } private static void deleteAfter(final DomNode node, final int offset) { if (isOffsetChars(node)) { String text = getText(node); if (offset > -1 && offset < text.length()) { <extra_id_0> setText(node, text); } } else { final DomNodeList<DomNode> children = node.getChildNodes(); for (int i = offset; i < children.getLength(); i++) {