Revert textContent

Reverts 309a88bcf6 because this is causing
issues internally. I'll try to get a repro soon.
This commit is contained in:
Paul O'Shannessy
2014-01-07 21:10:03 -08:00
committed by Paul O’Shannessy
parent b1597ab2d7
commit 23ab30ff87
+3 -5
View File
@@ -30,11 +30,9 @@ var contentKey = null;
*/
function getTextContentAccessor() {
if (!contentKey && ExecutionEnvironment.canUseDOM) {
// Prefer textContent to innerText because many browsers support both but
// SVG <text> elements don't support innerText even when <div> does.
contentKey = 'textContent' in document.createElement('div') ?
'textContent' :
'innerText';
contentKey = 'innerText' in document.createElement('div') ?
'innerText' :
'textContent';
}
return contentKey;
}