Skip to content

Commit 17dc635

Browse files
authored
Merge pull request #1218 from filipe-norte-red/wpe-2.38-missing-hbbtv-xhtml-mime-type
Create XML document for HbbTV XHTML MIME type
2 parents b3d9256 + b766520 commit 17dc635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/WebCore/dom/DOMImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Ref<Document> DOMImplementation::createDocument(const String& contentType, Frame
148148
// Plug-ins cannot take over for HTML, XHTML, plain text, or non-PDF images.
149149
if (equalLettersIgnoringASCIICase(contentType, "text/html"_s))
150150
return HTMLDocument::create(frame, settings, url, documentIdentifier);
151-
if (equalLettersIgnoringASCIICase(contentType, "application/xhtml+xml"_s))
151+
if (equalLettersIgnoringASCIICase(contentType, "application/xhtml+xml"_s) || equalLettersIgnoringASCIICase(contentType, "application/vnd.hbbtv.xhtml+xml"_s))
152152
return XMLDocument::createXHTML(frame, settings, url);
153153
if (equalLettersIgnoringASCIICase(contentType, "text/plain"_s))
154154
return TextDocument::create(frame, settings, url, documentIdentifier);

0 commit comments

Comments
 (0)