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