JavaScript: include standard mime types
ClosedPublic

Authored by ChALkeR on Oct 24 2017, 4:57 PM.

Details

Summary

JavaScript: include standard mime types

Add application/javascript and text/javascript mimetypes to
javascript.xml

application/javascript is the main one used in shared-mime-info,
without it syntax highlighting is not working for *.mjs files.

text/javascript is added as a safeguard in case if shared-mime-info
switches to it later, as there is ambiguity between which of those two
should be the main one, and IANA could switch to text/javascript.

Refs:

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ChALkeR created this revision.Oct 24 2017, 4:57 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 24 2017, 4:57 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
ChALkeR edited the summary of this revision. (Show Details)Oct 24 2017, 4:58 PM
ChALkeR edited the summary of this revision. (Show Details)Oct 25 2017, 11:31 AM
vkrause accepted this revision.Oct 26 2017, 9:10 AM
vkrause added a subscriber: vkrause.

please also bump the version number

This revision is now accepted and ready to land.Oct 26 2017, 9:10 AM
This revision was automatically updated to reflect the committed changes.