commit f2d03014b0136ea4a4ea391e91ddabffe5f425f8
parent f0cd6983f2f524c1e669cb3992bf73b3bd28a25a
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 30 May 2012 19:02:39 -0400
Use textContent instead of innerText when both are available
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -388,7 +388,7 @@ Zotero.Utilities = {
} else {
if(!node) node = document.createElement("div");
node.innerHTML = str;
- return ("innerText" in node ? node.innerText : node.textContent).replace(/ {2,}/g, " ");
+ return ("textContent" in node ? node.textContent : node.innerText).replace(/ {2,}/g, " ");
}
};
},