We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db2b73 commit 652af45Copy full SHA for 652af45
1 file changed
src/main/java/org/htmlunit/html/impl/SimpleRange.java
@@ -253,6 +253,7 @@ else if (endContainer_.getChildNodes().getLength() > endOffset_) {
253
else {
254
end = endContainer_.getNextSibling();
255
}
256
+
257
boolean foundStart = false;
258
boolean started = false;
259
final Iterator<DomNode> i = ancestor.getDescendants().iterator();
@@ -549,10 +550,10 @@ private static int getMaxOffset(final DomNode node) {
549
550
/**
551
* @return a list with all nodes contained in this range
552
*/
- public List containedNodes() {
553
+ public List<DomNode> containedNodes() {
554
final DomNode ancestor = getCommonAncestorContainer();
555
if (ancestor == null) {
- return Collections.EMPTY_LIST;
556
+ return Collections.emptyList();
557
558
559
final DomNode start;
0 commit comments