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