| Index: sky/engine/core/dom/Document.cpp
|
| diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
|
| index a4bb624ab988346d246b76daa5f56a32709d86df..ee47f3b7bb84ffcfe5fcd6d95dc0adc156cffa6d 100644
|
| --- a/sky/engine/core/dom/Document.cpp
|
| +++ b/sky/engine/core/dom/Document.cpp
|
| @@ -644,7 +644,7 @@ PassRefPtr<Node> Document::importNode(Node* importedNode, bool deep, ExceptionSt
|
| {
|
| switch (importedNode->nodeType()) {
|
| case TEXT_NODE:
|
| - return createTextNode(importedNode->nodeValue());
|
| + return createTextNode(toText(importedNode)->data());
|
| case ELEMENT_NODE: {
|
| Element* oldElement = toElement(importedNode);
|
| RefPtr<Element> newElement = createElement(oldElement->tagQName(), false);
|
|
|