From 13d1c37ea033d4c241b6ccdd960c6727a2edaaa5 Mon Sep 17 00:00:00 2001 From: Alexander Bosu-Kellett Date: Sun, 3 Sep 2023 11:51:28 +0200 Subject: [PATCH] LibCore: Recognize .xht as an HTML document This allows opening the WPT .xht files directly with ladybird. --- Userland/Libraries/LibCore/MimeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCore/MimeData.cpp b/Userland/Libraries/LibCore/MimeData.cpp index f59c47f1c2a..6dbe2d99084 100644 --- a/Userland/Libraries/LibCore/MimeData.cpp +++ b/Userland/Libraries/LibCore/MimeData.cpp @@ -141,7 +141,7 @@ static Array const s_registered_mime_type = { MimeType { .name = "text/css"sv, .common_extensions = { ".css"sv }, .description = "Cascading Style Sheet"sv }, MimeType { .name = "text/csv"sv, .common_extensions = { ".csv"sv }, .description = "CSV text"sv }, - MimeType { .name = "text/html"sv, .common_extensions = { ".html"sv, ".htm"sv, "/"sv }, .description = "HTML document"sv }, // FIXME: The "/" seems dubious + MimeType { .name = "text/html"sv, .common_extensions = { ".html"sv, ".htm"sv, ".xht"sv, "/"sv }, .description = "HTML document"sv }, // FIXME: The "/" seems dubious MimeType { .name = "text/markdown"sv, .common_extensions = { ".md"sv }, .description = "Markdown document"sv }, MimeType { .name = "text/plain"sv, .common_extensions = Vector(s_plaintext_suffixes.span()), .description = "plain text"sv }, MimeType { .name = "text/x-shellscript"sv, .common_extensions = { ".sh"sv }, .description = "POSIX shell script text executable"sv, .magic_bytes = Vector { '#', '!', '/', 'b', 'i', 'n', '/', 's', 'h', '\n' } },