datatracker.ietf.org
Sign in
Version 5.4.0, 2014-04-22
Report a bug

Scripting Media Types
RFC 4329

Document type: RFC - Informational (April 2006)
Was draft-hoehrmann-script-types (individual in app area)
Document stream: IETF
Last updated: 2013-03-02
Other versions: plain text, pdf, html

IETF State: (None)
Consensus: Unknown
Document shepherd: No shepherd assigned

IESG State: RFC 4329 (Informational)
Responsible AD: Scott Hollenbeck
Send notices to: bjoern@hoehrmann.de

Network Working Group                                       B. Hoehrmann
Request for Comments: 4329                                    April 2006
Category: Informational

                         Scripting Media Types

Status of This Memo

   This memo provides information for the Internet community.  It does
   not specify an Internet standard of any kind.  Distribution of this
   memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2006).

Abstract

   This document describes the registration of media types for the
   ECMAScript and JavaScript programming languages and conformance
   requirements for implementations of these types.

Table of Contents

   1. Introduction ....................................................2
   2. Conformance and Document Conventions ............................2
   3. Deployed Scripting Media Types and Compatibility ................2
   4. Character Encoding Scheme Handling ..............................4
      4.1. Charset Parameter ..........................................4
      4.2. Character Encoding Scheme Detection ........................4
      4.3. Character Encoding Scheme Error Handling ...................6
   5. Security Considerations .........................................6
   6. IANA Considerations .............................................8
   7. JavaScript Media Types ..........................................9
      7.1. text/javascript (obsolete) .................................9
      7.2. application/javascript ....................................10
   8. ECMAScript Media Types .........................................11
      8.1. text/ecmascript (obsolete) ................................11
      8.2. application/ecmascript ....................................12
   9. References .....................................................13
      9.1. Normative References ......................................13
      9.2. Informative References ....................................13

Hoehrmann                    Informational                      [Page 1]
RFC 4329                 Scripting Media Types                April 2006

1.  Introduction

   This memo describes media types for the JavaScript and ECMAScript
   programming languages.  Refer to "Brief History" and "Overview" in
   [ECMA] for background information on these languages.

   Programs written in these programming languages have historically
   been interchanged using inapplicable, experimental, and unregistered
   media types.  This document defines four of the most commonly used
   media types for such programs to reflect this usage in the IANA media
   type registry, to foster interoperability by defining underspecified
   aspects, and to provide general security considerations.

2.  Conformance and Document 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 BCP 14, [RFC2119] and
   indicate requirement levels for compliant implementations.
   Requirements apply to all implementations unless otherwise stated.

   An implementation is a software module that supports one of the media
   types defined in this document.  Software modules may support
   multiple media types but conformance is considered individually for
   each type.

   Implementations that fail to satisfy one or more "MUST" requirements
   are considered non-compliant.  Implementations that satisfy all
   "MUST" requirements, but fail to satisfy one or more "SHOULD"
   requirements, are said to be "conditionally compliant".  All other
   implementations are "unconditionally compliant".

3.  Deployed Scripting Media Types and Compatibility

   Various unregistered media types have been used in an ad-hoc fashion
   to label and exchange programs written in ECMAScript and JavaScript.
   These include:

      +-----------------------------------------------------+
      | text/javascript          | text/ecmascript          |
      | text/javascript1.0       | text/javascript1.1       |
      | text/javascript1.2       | text/javascript1.3       |
      | text/javascript1.4       | text/javascript1.5       |
      | text/jscript             | text/livescript          |
      | text/x-javascript        | text/x-ecmascript        |
      | application/x-javascript | application/x-ecmascript |
      | application/javascript   | application/ecmascript   |
      +-----------------------------------------------------+

Hoehrmann                    Informational                      [Page 2]

[include full document text]