From 23ab30ff873fba816129cafa0c40112dd2ee990d Mon Sep 17 00:00:00 2001 From: Paul O'Shannessy Date: Tue, 7 Jan 2014 21:06:46 -0800 Subject: [PATCH] Revert textContent Reverts 309a88bcf62c1c64a2b91c0eb753c19209a425b2 because this is causing issues internally. I'll try to get a repro soon. --- src/dom/getTextContentAccessor.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; }