The attached patch updates freedesktop.org.xml to use the official IANA registered types for JavaScript and CSV files, and adds ECMAScript. Note that the patch also uses "JavaScript" with capital "S" which appears to be the "official" spelling form, so translations need an update too.
Created attachment 5328 [details] [review] Use official types for javascript and csv, add ecmascript For reference: http://www.iana.org/assignments/media-types/ http://www.ietf.org/internet-drafts/draft-hoehrmann-script-types-03.txt http://www.rfc-editor.org/rfc/rfc4180.txt
Created attachment 5329 [details] [review] 2nd rev, preserves alphabetical order by mime type
2006-08-25 Bastien Nocera <hadess@hadess.net> * freedesktop.org.xml.in: Use application/javascript rather than application/x-javascript, patch by Ville Skyttä <ville.skytta@iki.fi> (Closes: #6616) 2006-08-25 Bastien Nocera <hadess@hadess.net> * az.po: * bg.po: * cs.po: * cy.po: * da.po: * de.po: * el.po: * eo.po: * es.po: * eu.po: * fi.po: * fr.po: * hu.po: * it.po: * ja.po: * ko.po: * lt.po: * ms.po: * nb.po: * nl.po: * nn.po: * pl.po: * pt.po: * pt_BR.po: * ru.po: * rw.po: * sq.po: * sr.po: * sv.po: * uk.po: * vi.po: * zh_CN.po: * zh_TW.po: update s/Javascript/JavaScript/
2006-08-25 Bastien Nocera <hadess@hadess.net> * freedesktop.org.xml.in: Use text/csv rather than text/x-comma-separated-values, patch by Ville Skyttä <ville.skytta@iki.fi> (Closes: #6616) 2006-08-25 Bastien Nocera <hadess@hadess.net> * freedesktop.org.xml.in: Add ECMAScript mime-type (application/ecmascript), patch by Ville Skyttä <ville.skytta@iki.fi> (Closes: #6616)
Thanks for applying the patches. However, one bit from the patch in comment 2 was missed, I think text/javascript should be listed as an alias to application/javascript; it is probably the most commonly used (due to cross browser compatibility) media type for JavaScript today and is also included in RFC 4329.
Created attachment 6685 [details] [review] Alias text/javascript to application/javascript
Good catch, it's missed 0.19 by minutes though, sorry. 2006-08-25 Bastien Nocera <hadess@hadess.net> * freedesktop.org.xml.in: Add text/javascript as an alias to application/javascript, spotted by Ville Skyttä <ville.skytta@iki.fi> (Closes: #6616)
*** Bug 9396 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.