mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-23 21:43:31 +01:00
Fix an old call to snapshotItem in highlightObj.highlightDoc.
Spans are now stored in an array.
This commit is contained in:
@@ -163,7 +163,7 @@ function Finder() //{{{
|
|||||||
let elems = highlightObj.getSpans(doc);
|
let elems = highlightObj.getSpans(doc);
|
||||||
for (let i = elems.length; --i >= 0;)
|
for (let i = elems.length; --i >= 0;)
|
||||||
{
|
{
|
||||||
let elem = elems.snapshotItem(i);
|
let elem = elems[i];
|
||||||
let docfrag = doc.createDocumentFragment();
|
let docfrag = doc.createDocumentFragment();
|
||||||
let next = elem.nextSibling;
|
let next = elem.nextSibling;
|
||||||
let parent = elem.parentNode;
|
let parent = elem.parentNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user