--- a/implementation.js Mon Jun 06 13:59:32 2011 -0600
+++ b/implementation.js Mon Jun 06 14:21:48 2011 -0600
@@ -339,7 +339,7 @@
stop = stop.childNodes[range.endOffset];
} else {
// This node and/or some of its children might be contained
- stop = nextNodeDescendants(node);
+ stop = nextNodeDescendants(stop);
}
var nodeList = [];
@@ -382,7 +382,7 @@
stop = stop.childNodes[range.endOffset];
} else {
// This node and/or some of its children might be contained
- stop = nextNodeDescendants(node);
+ stop = nextNodeDescendants(stop);
}
var nodeList = [];