Skip to content
Snippets Groups Projects
Commit 28b1b49a authored by Andreas Gohr's avatar Andreas Gohr
Browse files

remove IE<=8 innerText/textContent workaround #1535

Standardized node.textContent is available since IE9
parent 55123b45
No related branches found
No related tags found
No related merge requests found
......@@ -135,18 +135,8 @@ jQuery.fn.dw_qsearch = function (overrides) {
return;
}
// make IE's innerText available to W3C conform browsers
if (this.textContent) {
this.__defineGetter__('innerText', function () {
return this.textContent
});
this.__defineSetter__('innerText', function (val) {
this.textContent = val
});
}
nsL = this.innerText.indexOf('(');
nsR = this.innerText.indexOf(')');
nsL = this.textContent.indexOf('(');
nsR = this.textContent.indexOf(')');
eli = 0;
runaway = 0;
......@@ -169,12 +159,12 @@ jQuery.fn.dw_qsearch = function (overrides) {
length = 1;
replace = '';
}
this.innerText = substr_replace(this.innerText,
this.textContent = substr_replace(this.textContent,
replace, start, length);
eli = this.innerText.indexOf('');
nsL = this.innerText.indexOf('(');
nsR = this.innerText.indexOf(')');
eli = this.textContent.indexOf('');
nsL = this.textContent.indexOf('(');
nsR = this.textContent.indexOf(')');
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment