Skip to content

Commit

Permalink
Fixes #7824 (#7832)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnpenner authored and jimfb committed Oct 1, 2016
1 parent e321962 commit dae3043
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 dae3043

Please sign in to comment.