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