ECMAScript Media Types Updates
draft-ietf-dispatch-javascript-mjs-04

Document Type Active Internet-Draft (dispatch WG)
Last updated 2019-06-19
Replaces draft-bfarias-javascript-mjs
Stream IETF
Intended RFC status Informational
Formats plain text xml pdf html bibtex
Stream WG state WG Document
Document shepherd Barry Leiba
Shepherd write-up Show (last changed 2019-02-14)
IESG IESG state I-D Exists (IESG: Dead)
Consensus Boilerplate Unknown
Telechat date
Responsible AD Alexey Melnikov
Send notices to Barry Leiba <barryleiba@computer.org>
DISPATCH                                                       M. Borins
Internet-Draft                                                 M. Bynens
Updates: 4329 (if approved)                                       Google
Intended status: Informational                                 M. Miller
Expires: December 21, 2019                                       Mozilla
                                                               B. Farias
                                                           June 19, 2019

                     ECMAScript Media Types Updates
                 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".

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 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

Borins, et al.          Expires December 21, 2019               [Page 1]
Internet-Draft       ECMAScript Media Types Updates            June 2019

   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  . . . . . . . . . . . . . . . . . . . . . . . .   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  . . . . . . . . . . . . . . .   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
   defines two top-level goal symbols for the ECMAScript grammar.  This
   means that (in the absence of additional information) there are two
   possible interpretations for any given ECMAScript Source Text.  The
   TC39 standards body for ECMAScript has determined that media types
Show full document text