Skip to content

Commit b766520

Browse files
mikepantazogloufilipe-norte-red
authored andcommitted
Create XML document for HbbTV XHTML MIME type
Cherry-pick from wpe-2.28 commit 9f9cb30
1 parent d89d709 commit b766520

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)