mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Revert textContent
Reverts 309a88bcf6 because this is causing
issues internally. I'll try to get a repro soon.
This commit is contained in:
committed by
Paul O’Shannessy
parent
b1597ab2d7
commit
23ab30ff87
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user