Skip to content

Commit

Permalink
Merge pull request facebook#887 from syranide/textdocument
Browse files Browse the repository at this point in the history
Test innerText/textContent on document.documentElement instead
  • Loading branch information
zpao committed Apr 24, 2014
2 parents 83687b9 + a9a398b commit 28820e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/ui/dom/getTextContentAccessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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') ?
contentKey = 'textContent' in document.documentElement ?
'textContent' :
'innerText';
}
Expand Down

0 comments on commit 28820e0

Please sign in to comment.