Index: Source/core/xml/XSLTProcessor.cpp |
diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp |
index ef407955ccba19222db7c243f54f6546e36c85ff..c3e6219f002ff0c641d7c1715afd03ddd3bd4f87 100644 |
--- a/Source/core/xml/XSLTProcessor.cpp |
+++ b/Source/core/xml/XSLTProcessor.cpp |
@@ -69,7 +69,7 @@ PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourc |
RefPtr<Document> result; |
if (sourceMIMEType == "text/plain") { |
- result = Document::create(frame, sourceIsDocument ? ownerDocument->url() : KURL()); |
+ result = Document::create(DocumentInitializer(sourceIsDocument ? ownerDocument->url() : KURL(), frame)); |
transformTextStringToXHTMLDocumentString(documentSource); |
} else |
result = DOMImplementation::createDocument(sourceMIMEType, frame, sourceIsDocument ? ownerDocument->url() : KURL(), false); |