/src/main/java/org/htmlunit/html/impl/SimpleRange.java
if ( ancestor == null ) { return new DomDocumentFragment ( null ) ; }
if (startNode == endNode && startOffset > endOffset) { endOffset_ = startOffset; } } public DomDocumentFragment cloneContents() { final DomNode ancestor = getCommonAncestorContainer(); <extra_id_0> final DomNode ancestorClone = ancestor.cloneNode(true); DomNode startClone = null; DomNode endClone = null; final DomNode start = startContainer_; final DomNode end = endContainer_; if (start == ancestor) {