Use innerText if no textContent (for IE)

This commit is contained in:
Simon Kornblith 2012-07-01 13:00:41 -04:00
parent 6ab89ec164
commit cf29a030f2

View file

@ -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)) {