EMCAScript Media Types Updates
draft-bfarias-javascript-mjs-00

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Last updated 2017-08-16
Replaced by draft-ietf-dispatch-javascript-mjs
Stream (None)
Intended RFC status (None)
Formats pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                          B. Farias
Internet-Draft
Updates: 4329 (if approved)                                    M. Miller
Intended status: Informational                                   Mozilla
Expires: February 17, 2018                               August 16, 2017

                     EMCAScript Media Types Updates
                    draft-bfarias-javascript-mjs-00

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/bfarias/I-D/labels/javascript-mjs.

   The most recent (often, unpublished) draft is at
   https://github.com/bfarias/I-D/tree/master/javascript-mjs.

   Recent changes are listed at https://github.com/bfarias/I-
   D/commits/master/javascript-mjs.

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 http://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 February 17, 2018.

Farias & Miller         Expires February 17, 2018               [Page 1]
Internet-Draft       EMCAScript Media Types Updates          August 2017

Copyright Notice

   Copyright (c) 2017 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
   (http://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  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Background  . . . . . . . . . . . . . . . . . . . . . . . . .   2
   3.  Notational Conventions  . . . . . . . . . . . . . . . . . . .   3
   4.  Registration  . . . . . . . . . . . . . . . . . . . . . . . .   3
     4.1.  text/javascript . . . . . . . . . . . . . . . . . . . . .   3
     4.2.  application/javascript  . . . . . . . . . . . . . . . . .   4
   5.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   5
     5.1.  Normative References  . . . . . . . . . . . . . . . . . .   5
     5.2.  Informative References  . . . . . . . . . . . . . . . . .   5
   Appendix A.  Acknowledgements . . . . . . . . . . . . . . . . . .   6
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .   6

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
   are outside of their scope of work [TC39-MIME-ISSUE].

   It is not possible to fully determine if a Source Text of ECMAScript
   is meant to be parsed in the Module or Script grammar goals based
   upon content alone.  Therefore, scripting environments must use out
   of band information in order to determine what goal a Source Text

Farias & Miller         Expires February 17, 2018               [Page 2]
Internet-Draft       EMCAScript Media Types Updates          August 2017

   should be treated as.  To this end some scripting environments have
   chosen to adopt a new file extension of .mjs for determining the goal
   of a given Source Text.

3.  Notational Conventions

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

4.  Registration

   The ECMAScript media types are to be updated to point to a non-vendor
Show full document text