diff --git a/content/find.js b/content/find.js index 32c329e2..8adeeacc 100644 --- a/content/find.js +++ b/content/find.js @@ -176,11 +176,10 @@ liberator.Search = function () //{{{ return; } - var baseNode = doc.createElementNS("http://www.w3.org/1999/xhtml", "span"); - - baseNode = liberator.util.xmlToDom(baseNode); + class="__liberator-search"/> + baseNode = liberator.util.xmlToDom(baseNode, window.content.document); var body = doc.body; var count = body.childNodes.length;