We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd157b9 commit dcff483Copy full SHA for dcff483
Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp
@@ -229,11 +229,7 @@ static bool is_xml_mime_type(StringView resource_type)
229
if (!mime_type.has_value())
230
return false;
231
232
- // An XML MIME type is any MIME type whose subtype ends in "+xml" or whose essence is "text/xml" or "application/xml". [RFC7303]
233
- if (mime_type->subtype().ends_with_bytes("+xml"sv))
234
- return true;
235
-
236
- return mime_type->essence().is_one_of("text/xml"sv, "application/xml"sv);
+ return mime_type->is_xml();
237
}
238
239
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element:plugin-11
0 commit comments