www

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

commit cf29a030f2a7551aef7dae90cc3e1ff448b3dded
parent 6ab89ec164c60c8ac784330698b51176a25a344b
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun,  1 Jul 2012 13:00:41 -0400

Use innerText if no textContent (for IE)

Diffstat:
Mchrome/content/zotero/xpcom/utilities_translate.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/utilities_translate.js b/chrome/content/zotero/xpcom/utilities_translate.js @@ -158,7 +158,7 @@ Zotero.Utilities.Translate.prototype.getItemArray = function(doc, inHere, urlRe, var links = inHere[j].getElementsByTagName("a"); for(var i=0; i<links.length; i++) { if(!urlRe || urlRegexp.test(links[i].href)) { - var text = links[i].textContent; + var text = "textContent" in links[i] ? links[i].textContent : links[i].innerText; if(text) { text = this.trimInternal(text); if(!rejectRe || !rejectRegexp.test(text)) {