Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 2e9ebcf57b3a5d410e775ff3202f8586cbf684aa..5ec6b0a92ac571f8e46c401ce65f6b9f28869872 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -863,7 +863,7 @@ PassRefPtr<Node> Document::importNode(Node* importedNode, bool deep, ExceptionSt |
return newElement.release(); |
} |
case ATTRIBUTE_NODE: |
- return Attr::create(*this, QualifiedName(nullAtom, toAttr(importedNode)->name(), nullAtom), toAttr(importedNode)->value()); |
+ return Attr::create(*this, QualifiedName(nullAtom, AtomicString(toAttr(importedNode)->name()), nullAtom), toAttr(importedNode)->value()); |
case DOCUMENT_FRAGMENT_NODE: { |
if (importedNode->isShadowRoot()) { |
// ShadowRoot nodes should not be explicitly importable. |
@@ -4168,7 +4168,7 @@ PassRefPtr<Attr> Document::createAttributeNS(const AtomicString& namespaceURI, c |
return 0; |
} |
- return Attr::create(*this, qName, emptyString()); |
+ return Attr::create(*this, qName, emptyAtom); |
} |
const SVGDocumentExtensions* Document::svgExtensions() |