From a859ce991ce289a74176c70992dbdd00df546c47 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 4 Nov 2008 07:02:28 +0000 Subject: [PATCH] fix jumping to option tags --- content/liberator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/liberator.js b/content/liberator.js index 511a5d1d..a0534e1a 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -898,7 +898,7 @@ const liberator = (function () //{{{ liberator.open("chrome://liberator/locale/" + file, where); // TODO: it would be better to wait for pageLoad setTimeout(function () { - let elem = buffer.evaluateXPath("//*[@class='tag' and text()='" + tag + "']").snapshotItem(0); + let elem = buffer.evaluateXPath('//*[@class="tag" and text()="' + tag + '"]').snapshotItem(0); if (elem) window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context else