<table><tr><td style="">ChALkeR created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8451" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Add application/javascript and text/javascript mimetypes to<br />
javascript.xml</p>
<p>application/javascript is the main one used in shared-mime-info,<br />
without it syntax highlighting is not working for *.mjs files.</p>
<p>text/javascript is added as a safeguard in case if shared-mime-info<br />
switches to it later, as there is ambiguity between which of those two<br />
should be the main one, and IANA could switch to text/javascript.</p>
<p>Refs:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item"><a href="https://cgit.freedesktop.org/xdg/shared-mime-info/tree/freedesktop.org.xml.in" class="remarkup-link" target="_blank" rel="noreferrer">https://cgit.freedesktop.org/xdg/shared-mime-info/tree/freedesktop.org.xml.in</a></li>
<li class="remarkup-list-item"><a href="https://www.iana.org/assignments/media-types/application/javascript" class="remarkup-link" target="_blank" rel="noreferrer">https://www.iana.org/assignments/media-types/application/javascript</a></li>
<li class="remarkup-list-item"><a href="https://tools.ietf.org/html/rfc4329" class="remarkup-link" target="_blank" rel="noreferrer">https://tools.ietf.org/html/rfc4329</a></li>
<li class="remarkup-list-item"><a href="https://html.spec.whatwg.org/multipage/scripting.html#javascript-mime-type" class="remarkup-link" target="_blank" rel="noreferrer">https://html.spec.whatwg.org/multipage/scripting.html#javascript-mime-type</a></li>
<li class="remarkup-list-item"><a href="https://github.com/bmeck/I-D/blob/master/javascript-mjs/draft.md" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/bmeck/I-D/blob/master/javascript-mjs/draft.md</a></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8451" rel="noreferrer">https://phabricator.kde.org/D8451</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/syntax/javascript.xml</div></div></div><br /><div><strong>To: </strong>ChALkeR<br /><strong>Cc: </strong>Frameworks<br /></div>