summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2023-11-11 22:17:32 -0700
committerDavid Faure <faure@kde.org>2023-11-19 10:10:59 +0000
commit24ac92d06f95186c409a2663426129c9bc0ed307 (patch)
tree02416a44ca6a300198e8dd4fc3fa6d9552cb511b
parentedc614a53ca1de0c7fc25cca7b554fa105954fc0 (diff)
Add application/hta
The "HTML Application" format extended HTML with capabilities similar to desktop applications. But given that this format requires the old Internet Explorer rendering engine and HTML has grown many new features since then, it's probably more accurate to say that application/hta is a subset of text/html rather than a superset. https://learn.microsoft.com/en-us/previous-versions/ms536496(v=vs.85)
-rw-r--r--data/freedesktop.org.xml.in12
-rw-r--r--tests/mime-detection/list1
-rw-r--r--tests/mime-detection/nomaximize.hta5
3 files changed, 18 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index a9e2516..1f8eabb 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -6748,6 +6748,18 @@ command to generate the output files.
<glob pattern="*.html" weight="80"/>
<glob pattern="*.htm" weight="80"/>
</mime-type>
+ <mime-type type="application/hta">
+ <comment>Windows HTML desktop application</comment>
+ <acronym>HTML</acronym>
+ <expanded-acronym>HyperText Markup Language</expanded-acronym>
+ <sub-class-of type="text/html"/>
+ <generic-icon name="text-html"/>
+ <magic priority="60">
+ <match type="string" value="&lt;hta:application" offset="0:256"/>
+ <match type="string" value="&lt;HTA:APPLICATION" offset="0:256"/>
+ </magic>
+ <glob pattern="*.hta"/>
+ </mime-type>
<mime-type type="text/x-component">
<comment>HTML component</comment>
<acronym>HTML</acronym>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index b533e78..aafd45b 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -104,6 +104,7 @@ test-really-html-not-xhtml.html text/html ox
test-really-html-not-perl.html text/html
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/120
test.html text/html
+nomaximize.hta application/hta
# Copied from http://cvs.fedoraproject.org/viewvc/comps/comps-f11.xml.in?revision=1.306
test.xml.in application/xml x
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=25581
diff --git a/tests/mime-detection/nomaximize.hta b/tests/mime-detection/nomaximize.hta
new file mode 100644
index 0000000..3f1b3ea
--- /dev/null
+++ b/tests/mime-detection/nomaximize.hta
@@ -0,0 +1,5 @@
+<head>
+ <title>An HTML desktop application that should not be maximized</title>
+ <hta:application maximizebutton="no"></hta:application>
+</head>
+Hello World!