From a68efa7326dd95fcb7dda11391a0fdff41a898ac Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 8 Apr 2014 08:48:36 +0200 Subject: [PATCH] Add a mime type for XHTML and make Web+ the preferred app. * WebPositive testsuite relies on the mimetype to parse xhtml files. * This has a higher priority than HTML, because it is more reliably detectable * Uses the same icon as html and mhtml. Who wants to draw new ones? --- src/apps/webpositive/WebPositive.rdef | 1 + src/data/mime_db/application/xhtml+xml | 148 +++++++++++++++++++++++++ 2 files changed, 149 insertions(+) create mode 100644 src/data/mime_db/application/xhtml+xml diff --git a/src/apps/webpositive/WebPositive.rdef b/src/apps/webpositive/WebPositive.rdef index f23d226523..a2617449b1 100644 --- a/src/apps/webpositive/WebPositive.rdef +++ b/src/apps/webpositive/WebPositive.rdef @@ -19,6 +19,7 @@ resource file_types message { "types" = "image/jpeg", "types" = "image/png", "types" = "image/svg+xml", + "types" = "application/xhtml+xml", "types" = "application/x-vnd.Be.URL.file", "types" = "application/x-vnd.Be.URL.ftp", "types" = "application/x-vnd.Be.URL.http", diff --git a/src/data/mime_db/application/xhtml+xml b/src/data/mime_db/application/xhtml+xml new file mode 100644 index 0000000000..7f91024d1b --- /dev/null +++ b/src/data/mime_db/application/xhtml+xml @@ -0,0 +1,148 @@ + +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; + +resource(1, "META:TYPE") "application/xhtml+xml"; + +resource(2, "META:SNIFF_RULE") #'CSTR' array { + "0.60 [0]( \"