This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27644 - Defaulting to obsolete MIME type text/javascript which was obsoleted in 2006 by RFC4329
Summary: Defaulting to obsolete MIME type text/javascript which was obsoleted in 2006 ...
Status: RESOLVED DUPLICATE of bug 6684
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 23:53 UTC by gerwin
Modified: 2014-12-18 00:54 UTC (History)
5 users (show)

See Also:


Attachments

Description gerwin 2014-12-17 23:53:08 UTC
The HTML5.1 script tag constantly refers to the "text/javascript" MIME type which has been obsolete since 2006 according to RFC4329.  We should stop using the obsolete MIME type and move on to one of the non-obsoleted MIME types, be this "application/ecmascript" or "application/javascript".

Excerpt from the Spec:

"The type attribute gives the language of the script or format of the data. If the attribute is present, its value must be a valid MIME type. The charset parameter must not be specified. The default, which is used if the attribute is absent, is "text/javascript"."


As per RFC4329 Section 3

Use of the "text" top-level type for this kind of content is known to
   be problematic.  This document thus defines text/javascript and text/
   ecmascript but marks them as "obsolete".  Use of experimental and
   unregistered media types, as listed in part above, is discouraged.
   The media types,

      * application/javascript
      * application/ecmascript

   which are also defined in this document, are intended for common use
   and should be used instead.
Comment 1 Edward O'Connor 2014-12-18 00:05:29 UTC

*** This bug has been marked as a duplicate of bug 6684 ***