www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5fec7bdb1c88a15360bc332b3604de4af78a6b14
parent a334ac9f60ae10c44c1b8883806148d3661d5ff4
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed,  3 Apr 2013 16:30:49 -0400

Avoid deprecation warning

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1083,7 +1083,9 @@ Zotero.Utilities = { var strings = new Array(elements.length); for(var i=0, n=elements.length; i<n; i++) { var el = elements[i]; - strings[i] = "textContent" in el ? el.textContent + strings[i] = + (el.nodeType === 2 /*ATTRIBUTE_NODE*/ && "value" in el) ? el.value + : "textContent" in el ? el.textContent : "innerText" in el ? el.innerText : "text" in el ? el.text : el.nodeValue;