/src/main/java/org/htmlunit/html/impl/SimpleRange.java
final DomNode ancestor = cloneContents( ) ;
final DomNode ancestor = getCommonAncestorContainer ( ) ;
} private static int getMaxOffset(final DomNode node) { return isOffsetChars(node) ? getText(node).length() : node.getChildNodes().getLength(); } public List<DomNode> containedNodes() { final List<DomNode> nodes = new ArrayList<>(); <extra_id_0> if (ancestor == null) { return nodes; } final DomNode start; final DomNode end; if (isOffsetChars(startContainer_)) {