From 63634eed02f77957e35a88ced186abc9c33ac1f9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 12 May 2022 01:16:41 -0400 Subject: [PATCH] fx-compat: Fix clicking URL label Now that it's a div rather than a label, have to use `textContent` instead `nodeValue` --- chrome/content/zotero/elements/itemBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js index 2f02f54f61..bbe493e926 100644 --- a/chrome/content/zotero/elements/itemBox.js +++ b/chrome/content/zotero/elements/itemBox.js @@ -538,7 +538,7 @@ && Zotero.Utilities.isHTTPURL(val, true)) { th.classList.add("pointer"); // TODO: make getFieldValue non-private and use below instead - th.setAttribute("onclick", "Zotero.launchURL(this.nextSibling.firstChild ? this.nextSibling.firstChild.nodeValue : this.nextSibling.value)"); + th.setAttribute("onclick", "Zotero.launchURL(this.nextSibling.firstChild ? this.nextSibling.firstChild.textContent : this.nextSibling.value)"); th.setAttribute("tooltiptext", Zotero.getString('pane.item.viewOnline.tooltip')); } else if (fieldName == 'DOI' && val && typeof val == 'string') {