From 13958bfabaa8854c6f25907e2d16592a2eb2e641 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 29 Jul 2012 19:54:38 -0400 Subject: [PATCH] Revert "ZU.xpath tweak for IE" This reverts commit cb7640a96a2ff19ba8f6e2526954f3b888f0f357. --- chrome/content/zotero/xpcom/utilities.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 6d79842822..fc95506c1e 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -982,11 +982,6 @@ Zotero.Utilities = { } try { - if(!rootDoc.evaluate && typeof installXPathIfNecessary !== undefined) { - // For IE: element.ownerDocument will not have an evaluate property, - // since this is provided by JavaScript-XPath - installXPathIfNecessary('defaultView' in rootDoc ? rootDoc.defaultView : rootDoc.parentWindow); - } var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5, // 5 = ORDERED_NODE_ITERATOR_TYPE null); } catch(e) {