mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
Use textContent instead of innerText when both are available
This commit is contained in:
parent
f0cd6983f2
commit
f2d03014b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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, " ");
|
||||
}
|
||||
};
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue