Index: Source/core/xml/DOMParser.cpp |
diff --git a/Source/core/xml/DOMParser.cpp b/Source/core/xml/DOMParser.cpp |
index b923b46ec23902e17faae02d2457a0238f28e989..25c1cb6d6d222de8bcb4086409d31592094b2c63 100644 |
--- a/Source/core/xml/DOMParser.cpp |
+++ b/Source/core/xml/DOMParser.cpp |
@@ -20,14 +20,13 @@ |
#include "core/xml/DOMParser.h" |
#include "core/dom/DOMImplementation.h" |
-#include "core/dom/Document.h" |
#include "wtf/text/WTFString.h" |
namespace WebCore { |
PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType) |
{ |
- if (!DOMImplementation::isXMLMIMEType(contentType)) |
+ if (!DOMImplementation::isXMLMIMEType(contentType) && contentType != "text/html") |
return 0; |
RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false); |