/src/main/java/org/htmlunit/html/impl/SimpleRange.java
final DomNodeList<DomNode> children = start.getChildNodes( ) ;
final DomNodeList<DomNode> children = node.getChildNodes ( ) ;
if (offset > -1 && offset < text.length()) { text = text.substring(0, offset); setText(node, text); } } else { <extra_id_0> for (int i = offset; i < children.getLength(); i++) { final DomNode child = children.get(i); child.remove(); i--; } }