commit b63430e1807bb95d9bb7fc7d0c19c77eb9b8ef0b
parent 5fec7bdb1c88a15360bc332b3604de4af78a6b14
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 3 Apr 2013 16:35:30 -0400
Add link to bug on document.evaluate deprecation warnings
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -1031,8 +1031,9 @@ Zotero.Utilities = {
if(!Zotero.isIE || "evaluate" in rootDoc) {
try {
- var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5, // 5 = ORDERED_NODE_ITERATOR_TYPE
- null);
+ // This may result in a deprecation warning in the console due to
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=674437
+ var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5 /*ORDERED_NODE_ITERATOR_TYPE*/, null);
} catch(e) {
// rethrow so that we get a stack
throw new Error(e.name+": "+e.message);