diff --git a/src/dom/getTextContentAccessor.js b/src/dom/getTextContentAccessor.js index f9d141c7ca..1475481e03 100644 --- a/src/dom/getTextContentAccessor.js +++ b/src/dom/getTextContentAccessor.js @@ -30,11 +30,9 @@ var contentKey = null; */ function getTextContentAccessor() { if (!contentKey && ExecutionEnvironment.canUseDOM) { - // Prefer textContent to innerText because many browsers support both but - // SVG elements don't support innerText even when
does. - contentKey = 'textContent' in document.createElement('div') ? - 'textContent' : - 'innerText'; + contentKey = 'innerText' in document.createElement('div') ? + 'innerText' : + 'textContent'; } return contentKey; }