summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-05-23 21:26:35 +0200
committerBastien Nocera <hadess@hadess.net>2022-05-23 21:31:03 +0200
commitf4e7cbc86e67e7bc39cf8167823fcf0d8ace9ce1 (patch)
tree9a45e034f616f55e228274390077bcce9244dafc
parent35969aa01c47a2e94aa7e10b913af2e08981001f (diff)
downloadshared-mime-info-f4e7cbc86e67e7bc39cf8167823fcf0d8ace9ce1.tar.gz
application/javascript: Rename to text/javascript
As per RFC 9239. Miller, M., Borins, M., Bynens, M., and B. Farias, "Updates to ECMAScript Media Types", RFC 9239, DOI 10.17487/RFC9239, May 2022, <https://www.rfc-editor.org/info/rfc9239>.
-rw-r--r--data/freedesktop.org.xml.in6
-rw-r--r--tests/mime-detection/list8
2 files changed, 7 insertions, 7 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index b3fe3b7f..082416db 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -2604,10 +2604,10 @@ command to generate the output files.
</magic>
<glob pattern="*.pack"/>
</mime-type>
- <mime-type type="application/javascript">
+ <mime-type type="text/javascript">
<comment>JavaScript program</comment>
<alias type="application/x-javascript"/>
- <alias type="text/javascript"/>
+ <alias type="application/javascript"/>
<sub-class-of type="application/ecmascript"/>
<generic-icon name="text-x-script"/>
<magic>
@@ -2630,7 +2630,7 @@ command to generate the output files.
<comment>JSON document</comment>
<acronym>JSON</acronym>
<expanded-acronym>JavaScript Object Notation</expanded-acronym>
- <sub-class-of type="application/javascript"/>
+ <sub-class-of type="text/javascript"/>
<generic-icon name="text-x-script"/>
<glob pattern="*.json"/>
</mime-type>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 25ef57ba..29955b8c 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -302,11 +302,11 @@ helloworld.vbs text/vbscript ox
build.gradle text/x-gradle ox
ico.ksy text/x-kaitai-struct ox
# Copied from http://asurvey.net/ccsfagent/media/survey.js
-survey.js application/javascript ox
+survey.js text/javascript ox
# Copied from gecko/accessible/src/jsat/Utils.jsm in Boot2Gecko
-Utils.jsm application/javascript ox
-esm.mjs application/javascript ox
-javascript-without-extension application/javascript xoo
+Utils.jsm text/javascript ox
+esm.mjs text/javascript ox
+javascript-without-extension text/javascript xoo
# The following two copied from RFC 4627.
json_object.json application/json ox
json_array.json application/json ox