@openstax/highlighter
Advanced tools
Comparing version 1.10.0 to 1.11.0
@@ -168,2 +168,8 @@ "use strict"; | ||
} | ||
else if (!goDeeper && node.contains(endContainer)) { | ||
// stops traversing of tree if endContainer is a descendent of current allowed node | ||
// this prevents a bug where the highlighter breaks out of its bounds and scans the remainder of the page | ||
// (happens when firefox sets the comment inside an iframe as endcontainer) | ||
done = true; | ||
} | ||
else if (node.nextSibling) { | ||
@@ -170,0 +176,0 @@ node = node.nextSibling; |
{ | ||
"name": "@openstax/highlighter", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
196404
2277