@samitouri / QOS-React-2 / commits / a9a398b15a

Test innerText/textContent on document.documentElement instead

Andreas Svensson committed Jan 14, 2014 at 12:05 UTC a9a398b15a58cb53463a22d550912350c2f68a07
1 file changed +1 -1
src/browser/ui/dom/getTextContentAccessor.js
+1 -1
@@ -32,7 +32,7 @@ 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') ?
35 + contentKey = 'textContent' in document.documentElement ?
36 'textContent' :
37 'innerText';
38 }