/src/main/java/org/htmlunit/html/impl/SimpleRange.java
if ( startContainer_ != null && endContainer_ == null) {
if ( startContainer_ != null && endContainer_ != null ) {
return fragment; } public boolean isCollapsed() throws DOMException { return startContainer_ == endContainer_ && startOffset_ == endOffset_; } public DomNode getCommonAncestorContainer() throws DOMException { <extra_id_0> for (DomNode p1 = startContainer_; p1 != null; p1 = p1.getParentNode()) { for (DomNode p2 = endContainer_; p2 != null; p2 = p2.getParentNode()) { if (p1 == p2) { return p1; } }