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