Use innerText if no textContent (for IE)
This commit is contained in:
parent
6ab89ec164
commit
cf29a030f2
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue