From b03657add34fc62f53e694ad4d0d266ffa343254 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 15 Aug 2022 10:37:59 -0400 Subject: [PATCH] fx-compat: Use DOMParser constructor in _eventToEventTitle --- chrome/content/zotero/xpcom/style.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 232f442246..b23fc5c1f1 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -805,8 +805,7 @@ Zotero.Style.prototype.getCiteProc = function(locale, format, automaticJournalAb * Until https://github.com/citation-style-language/styles/issues/6151 */ Zotero.Style.prototype._eventToEventTitle = function (xml) { - var parser = Components.classes["@mozilla.org/xmlextras/domparser;1"] - .createInstance(Components.interfaces.nsIDOMParser); + var parser = new DOMParser(); var doc = parser.parseFromString(xml, "text/xml"); // Ignore styles that already include `event-title` if (doc.querySelector('[variable*="event-title"]')) {