mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
LibCore: Recognize .xht as an HTML document
This allows opening the WPT .xht files directly with ladybird.
This commit is contained in:
parent
ed0dc2ff72
commit
13d1c37ea0
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/lypanov 🔰 Commit: https://github.com/SerenityOS/serenity/commit/13d1c37ea0 Pull-request: https://github.com/SerenityOS/serenity/pull/20929
@ -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<u8> { '#', '!', '/', 'b', 'i', 'n', '/', 's', 'h', '\n' } },
|
||||
|
Loading…
Reference in New Issue
Block a user