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