--- 1/draft-ietf-dispatch-javascript-mjs-03.txt 2019-06-19 08:13:10.995951010 -0700 +++ 2/draft-ietf-dispatch-javascript-mjs-04.txt 2019-06-19 08:13:11.027951405 -0700 @@ -1,102 +1,90 @@ DISPATCH M. Borins Internet-Draft M. Bynens Updates: 4329 (if approved) Google Intended status: Informational M. Miller -Expires: August 26, 2019 Mozilla +Expires: December 21, 2019 Mozilla B. Farias - February 22, 2019 + June 19, 2019 ECMAScript Media Types Updates - draft-ietf-dispatch-javascript-mjs-03 + draft-ietf-dispatch-javascript-mjs-04 Abstract This document proposes updates to the ECMAScript media types, superseding the existing registrations for "application/javascript" and "text/javascript" by adding an additional extension and removing usage warnings. This document updates RFC4329, "Scripting Media Types". -Note to Readers - - The issues list for this draft can be found at - https://github.com/bmeck/I-D/labels/javascript-mjs [1]. - - The most recent (often, unpublished) draft is at - https://github.com/bmeck/I-D/tree/master/javascript-mjs [2]. - - Recent changes are listed at https://github.com/bmeck/I- - D/commits/master/javascript-mjs [3]. - Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on August 26, 2019. + This Internet-Draft will expire on December 21, 2019. Copyright Notice Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents - 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 - 2. Background . . . . . . . . . . . . . . . . . . . . . . . . . 3 + 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 + 2. Background . . . . . . . . . . . . . . . . . . . . . . . . . 2 3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 3 3.1. Common Javascript Media Types . . . . . . . . . . . . . . 3 3.1.1. text/javascript . . . . . . . . . . . . . . . . . . . 3 3.2. Historic Javascript Media Types . . . . . . . . . . . . . 4 - 3.2.1. application/ecmascript . . . . . . . . . . . . . . . 5 - 3.2.2. application/javascript . . . . . . . . . . . . . . . 6 - 3.2.3. application/x-ecmascript . . . . . . . . . . . . . . 7 - 3.2.4. application/x-javascript . . . . . . . . . . . . . . 8 - 3.2.5. text/ecmascript . . . . . . . . . . . . . . . . . . . 9 - 3.2.6. text/javascript1.0 . . . . . . . . . . . . . . . . . 10 - 3.2.7. text/javascript1.1 . . . . . . . . . . . . . . . . . 11 - 3.2.8. text/javascript1.2 . . . . . . . . . . . . . . . . . 12 - 3.2.9. text/javascript1.3 . . . . . . . . . . . . . . . . . 13 - 3.2.10. text/javascript1.4 . . . . . . . . . . . . . . . . . 14 - 3.2.11. text/javascript1.5 . . . . . . . . . . . . . . . . . 15 - 3.2.12. text/jscript . . . . . . . . . . . . . . . . . . . . 16 - 3.2.13. text/livescript . . . . . . . . . . . . . . . . . . . 17 - 3.2.14. text/x-ecmascript . . . . . . . . . . . . . . . . . . 18 - 3.2.15. text/x-javascript . . . . . . . . . . . . . . . . . . 19 - 4. References . . . . . . . . . . . . . . . . . . . . . . . . . 20 - 4.1. Normative References . . . . . . . . . . . . . . . . . . 20 - 4.2. Informative References . . . . . . . . . . . . . . . . . 20 - 4.3. URIs . . . . . . . . . . . . . . . . . . . . . . . . . . 21 - Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . 21 - Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 21 + 3.2.1. application/ecmascript . . . . . . . . . . . . . . . 4 + 3.2.2. application/javascript . . . . . . . . . . . . . . . 5 + 3.2.3. application/x-ecmascript . . . . . . . . . . . . . . 6 + 3.2.4. application/x-javascript . . . . . . . . . . . . . . 7 + 3.2.5. text/ecmascript . . . . . . . . . . . . . . . . . . . 8 + 3.2.6. text/javascript1.0 . . . . . . . . . . . . . . . . . 9 + 3.2.7. text/javascript1.1 . . . . . . . . . . . . . . . . . 10 + 3.2.8. text/javascript1.2 . . . . . . . . . . . . . . . . . 11 + 3.2.9. text/javascript1.3 . . . . . . . . . . . . . . . . . 12 + 3.2.10. text/javascript1.4 . . . . . . . . . . . . . . . . . 13 + 3.2.11. text/javascript1.5 . . . . . . . . . . . . . . . . . 14 + 3.2.12. text/jscript . . . . . . . . . . . . . . . . . . . . 15 + 3.2.13. text/livescript . . . . . . . . . . . . . . . . . . . 16 + 3.2.14. text/x-ecmascript . . . . . . . . . . . . . . . . . . 17 + 3.2.15. text/x-javascript . . . . . . . . . . . . . . . . . . 18 + 4. References . . . . . . . . . . . . . . . . . . . . . . . . . 19 + 4.1. Normative References . . . . . . . . . . . . . . . . . . 19 + 4.2. Informative References . . . . . . . . . . . . . . . . . 19 + Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . 19 + Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 20 1. Introduction This document updates the existing media types for the ECMAScript programming language. It supersedes the media types registrations in [RFC4329] for "application/javascript" and "text/javascript". 2. Background In order to formalize support for modular programs [ECMA-262] now @@ -131,56 +119,54 @@ 3.1. Common Javascript Media Types 3.1.1. text/javascript Type name: text Subtype name: javascript Required parameters: none - Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. + Optional parameters: charset, see section 4.1 of [RFC4329]. Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: COMMON - Restrictions on usage: The file extension .mjs must be parsed using - the Module grammar of [ECMA-262] + Restrictions on usage: The .mjs file extension signals that the file + represents a JavaScript module. Execution environments that rely + on file extensions to determine how to process inputs parse .mjs + files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2. Historic Javascript Media Types The following media types are added or updated for historical purposes. All herein have an intended usage of OBSOLETE, and are not expected to be in use with modern implementations. @@ -188,36 +174,30 @@ 3.2.1. application/ecmascript Type name: application Subtype name: ecmascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT @@ -221,54 +201,50 @@ File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.2. application/javascript Type name: application Subtype name: javascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT @@ -272,54 +248,50 @@ File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG . 3.2.3. application/x-ecmascript Type name: application Subtype name: x-ecmascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT @@ -323,54 +295,50 @@ File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.4. application/x-javascript Type name: application Subtype name: x-javascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT @@ -372,55 +340,52 @@ Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE + Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.5. text/ecmascript Type name: text Subtype name: ecmascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT @@ -424,54 +389,50 @@ File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.6. text/javascript1.0 Type name: text Subtype name: javascript1.0 Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT @@ -475,110 +436,104 @@ File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.7. text/javascript1.1 Type name: text Subtype name: javascript1.1 Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs + Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.8. text/javascript1.2 Type name: text Subtype name: javascript1.2 Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a + File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current @@ -575,54 +530,50 @@ File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.9. text/javascript1.3 Type name: text Subtype name: javascript1.3 Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT @@ -626,54 +577,50 @@ File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.10. text/javascript1.4 Type name: text Subtype name: javascript1.4 Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT @@ -677,104 +624,97 @@ File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.11. text/javascript1.5 Type name: text Subtype name: javascript1.5 Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE Restrictions on usage: This media type is obsolete; current - implementations should use text/javascript as the only javascript/ - ECMAscript media type. The file extension .mjs must be parsed - using the Module grammar of [ECMA-262] + implementations should use text/javascript as the only JavaScript/ + ECMAScript media type. The .mjs file extension signals that the + file represents a JavaScript module. Execution environments that + rely on file extensions to determine how to process inputs parse + .mjs files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.12. text/jscript Type name: text Subtype name: jscript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] - Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT @@ -777,211 +717,195 @@ File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE - Restrictions on usage: The file extension .mjs must be parsed using - the Module grammar of [ECMA-262] + Restrictions on usage: The .mjs file extension signals that the file + represents a JavaScript module. Execution environments that rely + on file extensions to determine how to process inputs parse .mjs + files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.13. text/livescript Type name: text Subtype name: livescript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE - Restrictions on usage: The file extension .mjs must be parsed using - the Module grammar of [ECMA-262] + Restrictions on usage: The .mjs file extension signals that the file + represents a JavaScript module. Execution environments that rely + on file extensions to determine how to process inputs parse .mjs + files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.14. text/x-ecmascript Type name: text Subtype name: x-ecmascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a File extension(s): .es, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE - Restrictions on usage: The file extension .mjs must be parsed using - the Module grammar of [ECMA-262] + Restrictions on usage: The .mjs file extension signals that the file + represents a JavaScript module. Execution environments that rely + on file extensions to determine how to process inputs parse .mjs + files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 3.2.15. text/x-javascript Type name: text Subtype name: x-javascript Required parameters: none Optional parameters: charset, see section 4.1 of [RFC4329]. - goal, declares the goal symbol in the Syntactic Grammars of - [ECMA-262] to be used while parsing. This parameter is case - insensitive. - Encoding considerations: Encoding is host dependent with differences in byte order marks, the charset parameter, and text preprocessing. Security considerations: See section 5 of [RFC4329]. Interoperability considerations: See notes in various sections of - [RFC4329]. This media type does not specify the grammar of - [ECMA-262] used when missing the goal parameter. + [RFC4329]. Published specification: [[RFCXXXX]] Applications which use this media type: Script interpreters as discussed in [RFC4329]. Additional information: Magic number(s): n/a - File extension(s): .js, .mjs Macintosh File Type Code(s): TEXT Person & email address to contact for further information: See Author's Address section. Intended usage: OBSOLETE - Restrictions on usage: The file extension .mjs must be parsed using - the Module grammar of [ECMA-262] + Restrictions on usage: The .mjs file extension signals that the file + represents a JavaScript module. Execution environments that rely + on file extensions to determine how to process inputs parse .mjs + files using the Module grammar of [ECMA-262]. Author: See Author's Address section. Change controller: IESG 4. References 4.1. Normative References [ECMA-262] Ecma International, "Standard ECMA-262: ECMAScript - Language Specification", August 2017, . [RFC4329] Hoehrmann, B., "Scripting Media Types", RFC 4329, DOI 10.17487/RFC4329, April 2006, . 4.2. Informative References [HTML] WHATWG, "HTML Living Standard", August 2017, . [TC39-MIME-ISSUE] TC39, "Add `application/javascript+module` mime to remove - ambiguity5", August 2017, . - -4.3. URIs - - [1] https://github.com/bmeck/I-D/labels/javascript-mjs - - [2] https://github.com/bmeck/I-D/tree/master/javascript-mjs - - [3] https://github.com/bmeck/I-D/commits/master/javascript-mjs + ambiguity", August 2017, . Appendix A. Acknowledgements - Thanks to Suresh Krishnan, Alexey Melnikov, Mark Nottingham, James - Snell, Adam Roach, and Allen Wirfs-Brock for guiding me through this - process. + The authors would like to thank Suresh Krishnan, Alexey Melnikov, + Mark Nottingham, James Snell, Adam Roach, and Allen Wirfs-Brock for + their guidance throughout this process. Authors' Addresses Myles Borins Google Email: mylesborins@google.com Mathias Bynens Google