mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-11 05:35:47 +01:00
Closes issue #309.
This commit is contained in:
@@ -730,7 +730,10 @@ var RangeFind = Class("RangeFind", {
|
||||
},
|
||||
nodeRange: function (node) {
|
||||
let range = node.ownerDocument.createRange();
|
||||
range.selectNode(node);
|
||||
try {
|
||||
range.selectNode(node);
|
||||
}
|
||||
catch (e) {}
|
||||
return range;
|
||||
},
|
||||
sameDocument: function (r1, r2) r1 && r2 && r1.endContainer.ownerDocument == r2.endContainer.ownerDocument,
|
||||
|
||||
Reference in New Issue
Block a user