Revert textContent
Reverts 309a88bcf62c1c64a2b91c0eb753c19209a425b2 because this is causing issues internally. I'll try to get a repro soon.
Paul O'Shannessy committed
Jan 7, 2014 at 21:06 UTC
23ab30ff873fba816129cafa0c40112dd2ee990d
1 file changed
+3
-5
src/dom/getTextContentAccessor.js
+3
-5
@@ -30,11 +30,9 @@ var contentKey = null;
30
*/
31
function getTextContentAccessor() {
32
if (!contentKey && ExecutionEnvironment.canUseDOM) {
33
- // Prefer textContent to innerText because many browsers support both but
34
- // SVG <text> elements don't support innerText even when <div> does.
35
- contentKey = 'textContent' in document.createElement('div') ?
36
- 'textContent' :
37
- 'innerText';
33
+ contentKey = 'innerText' in document.createElement('div') ?
34
+ 'innerText' :
35
+ 'textContent';
36
}
37
return contentKey;
38
}