Index: sky/engine/core/dom/Node.cpp |
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp |
index 4ebaf10edf2cb266fe02aeb717eb8ba41540ad1b..c6986da84f8b71cfffa2d28006aec482cfac90b5 100644 |
--- a/sky/engine/core/dom/Node.cpp |
+++ b/sky/engine/core/dom/Node.cpp |
@@ -919,7 +919,7 @@ void Node::setTextContent(const String& text) |
// Note: This API will not insert empty text nodes: |
// http://dom.spec.whatwg.org/#dom-node-textcontent |
if (!text.isEmpty()) |
- container->appendChild(document().createTextNode(text), ASSERT_NO_EXCEPTION); |
+ container->appendChild(Text::create(document(), text), ASSERT_NO_EXCEPTION); |
return; |
} |
case DOCUMENT_NODE: |