mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Remove use of innerHTML in the getElementText method
This commit is contained in:
parent
a5607ae960
commit
38f7d73be3
@ -83,11 +83,7 @@
|
|||||||
if (config.supportsTextContent) {
|
if (config.supportsTextContent) {
|
||||||
text = node.textContent;
|
text = node.textContent;
|
||||||
} else {
|
} else {
|
||||||
if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) {
|
text = $(node).text();
|
||||||
text = node.childNodes[0].innerHTML;
|
|
||||||
} else {
|
|
||||||
text = node.innerHTML;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (typeof(te) === "function") {
|
if (typeof(te) === "function") {
|
||||||
|
Loading…
Reference in New Issue
Block a user