Skip to content

Commit

Permalink
Fixes #7824 (#7832)
Browse files Browse the repository at this point in the history
(cherry picked from commit dae3043)
  • Loading branch information
mnpenner authored and zpao committed Oct 4, 2016
1 parent a793486 commit 8ecaadd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderers/dom/client/utils/setTextContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ var setTextContent = function(node, text) {
if (ExecutionEnvironment.canUseDOM) {
if (!('textContent' in document.documentElement)) {
setTextContent = function(node, text) {
if (node.nodeType === 3) {
node.nodeValue = text;
return;
}
setInnerHTML(node, escapeTextContentForBrowser(text));
};
}
Expand Down

0 comments on commit 8ecaadd

Please sign in to comment.