Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mnpenner authored and acusti committed Mar 15, 2017
1 parent bc46694 commit 4b6d533
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 4b6d533

Please sign in to comment.