@samitouri / QOS-React-2 / commits / dae3043897

Fixes #7824 (#7832)

Mark Penner committed Sep 30, 2016 at 19:03 UTC dae3043897ef581cf399e688739fb58d23b86c7d
1 file changed +4
src/renderers/dom/client/utils/setTextContent.js
+4
@@ -40,6 +40,10 @@ var setTextContent = function(node, text) {
40 if (ExecutionEnvironment.canUseDOM) {
41 if (!('textContent' in document.documentElement)) {
42 setTextContent = function(node, text) {
43 + if (node.nodeType === 3) {
44 + node.nodeValue = text;
45 + return;
46 + }
47 setInnerHTML(node, escapeTextContentForBrowser(text));
48 };
49 }