Bug#1061477: Use js as first file name suffix for text/javascript

2025-02-08 Thread Andrea Pappacoda
Hi Charles, On Sat Feb 8, 2025 at 5:26 AM CET, Charles Plessy wrote: And in my understanding, an ecmascript file served as text/javascript will be correctly processed. Historically, ecmascript media types implied stricter processing with things related to character encoding and such. I don't

Bug#1061477: Use js as first file name suffix for text/javascript

2025-02-07 Thread Charles Plessy
Hi Andrea and Maxim, thank you again for your input, I know we did not reach full agreement, but I have uploaded an update closing this bug, where I attributed es as the last choice for text/javascript. In my understanding, the information provided by the IANA does not forbid us to associate fil

Bug#1061477: Use js as first file name suffix for text/javascript

2025-02-02 Thread Andrea Pappacoda
Hi Charles, On Fri Jan 31, 2025 at 3:09 AM CET, Charles Plessy wrote: I checked again the IANA site and it says that ecmascript is obsoleted in favor of text/javascript. This is correct. I think that I will move .es to the end of the suffix list of text/javascript, and upload that soon. Th

Bug#1061477: Use js as first file name suffix for text/javascript

2025-02-01 Thread Maxim Nikulin
Sorry, for some reasons I did not receive messages besides Wed, 29 Jan 2025 18:15:55 +0100, so I was unaware of comments. On Sun, 26 Jan 2025 10:40:04 +0900 Charles Plessy wrote: I was not aware that some tools use the order of extensions listed in /etc/mime.types as an indication of priority.

Bug#1061477: Use js as first file name suffix for text/javascript

2025-01-30 Thread Charles Plessy
Hi Andrea, thanks for your feedback, I checked again the IANA site and it says that ecmascript is obsoleted in favor of text/javascript. I think that I will move .es to the end of the suffix list of text/javascript, and upload that soon. Please let me know if this does not solve the problem tha

Bug#1061477: Use js as first file name suffix for text/javascript

2025-01-29 Thread Andrea Pappacoda
Hi Charles, On Sun Jan 26, 2025 at 2:40 AM CET, Charles Plessy wrote: My understanding of the media type declarations is that all ecmascript files should be served as text/javascript, which is why I added the `es` extension to that type. Yeah, all ECMAScript files should be served with `text/j

Bug#1061477: Use js as first file name suffix for text/javascript

2025-01-25 Thread Charles Plessy
Le Thu, Jan 25, 2024 at 12:34:51PM +0700, Maxim Nikulin a écrit : > > I suggest to put the "es" extension last, or perhaps even to add > text/ecmascript record for it. It would allow to avoid accidents like > > python3 -c 'import mimetypes; > print(mimetypes.guess_extension("text/javascript"))' >

Bug#1061477: Use js as first file name suffix for text/javascript

2024-01-24 Thread Maxim Nikulin
Package: media-types Version: 10.0.0 Currently /etc/mime.types has .es as first suffix associated with the text/javascript media type text/javascript es js mjs I suggest to put the "es" extension last, or perhaps even to add text/ecmascript record for it. It w