/src/main/java/org/htmlunit/html/impl/SimpleRange.java
if ( ( ( startOffset_) > ( -1) ) && ( ( startOffset_) < ( text.length( ) ) ) ) {   text = text.substring( startOffset_) ; }
[Delete]
} public SimpleRange(final DomNode startNode, final int startOffset, final DomNode endNode, final int endOffset) { startContainer_ = startNode; endContainer_ = endNode; startOffset_ = startOffset; endOffset_ = endOffset; <extra_id_0> endOffset_ = startOffset; } } public DomDocumentFragment cloneContents() { final DomNode ancestor = getCommonAncestorContainer(); if (ancestor == null) {