D8451: JavaScript: include standard mime types

Nikita Skovoroda noreply at phabricator.kde.org
Tue Oct 24 16:57:55 UTC 2017


ChALkeR created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  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:
  
  - https://cgit.freedesktop.org/xdg/shared-mime-info/tree/freedesktop.org.xml.in
  - https://www.iana.org/assignments/media-types/application/javascript
  - https://tools.ietf.org/html/rfc4329
  - https://html.spec.whatwg.org/multipage/scripting.html#javascript-mime-type
  - https://github.com/bmeck/I-D/blob/master/javascript-mjs/draft.md

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D8451

AFFECTED FILES
  data/syntax/javascript.xml

To: ChALkeR
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171024/0e2ab7ca/attachment.html>


More information about the Kde-frameworks-devel mailing list