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 17436 - move text/javascript to application/javascript
Summary: move text/javascript to application/javascript
Status: RESOLVED DUPLICATE of bug 6684
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 11:36 UTC by Jonathan Kingston
Modified: 2012-06-07 12:30 UTC (History)
5 users (show)

See Also:


Attachments

Description Jonathan Kingston 2012-06-07 11:36:53 UTC
In the specification:
http://dev.w3.org/html5/spec-LC/infrastructure.html#dependencies

The default type is specified as: "text/javascript" which is obsolete and I think it would be better to be: "application/javascript"

Despite its lack of Internet explorer adoption I see that less of an issue as it will hinder the adoption of the correct mime type.

I feel a note explaining the differences and that "application/javascript" is the correct usage and also the default would preserve the integrity of this document and be in tune with what IETF are specifying.
Comment 1 Sierk Bornemann 2012-06-07 12:02:19 UTC
See Bug 6684 - Disregard of RFC 4329 and IANA MIME Media Types
https://www.w3.org/Bugs/Public/show_bug.cgi?id=6684

The result of that bug's discussion is the green note in the specification's prose at 
http://dev.w3.org/html5/spec-LC/infrastructure.html#dependencies

--- quote ---
JavaScript

Some parts of the language described by this specification only support JavaScript as the underlying scripting language. [ECMA262]

The term "JavaScript" is used to refer to ECMA262, rather than the official term ECMAScript, since the term JavaScript is more widely known. Similarly, the MIME type used to refer to JavaScript in this specification is text/javascript, since that is the most commonly used type, despite it being an officially obsoleted type [1] according to RFC 4329. [RFC4329]
-- /quote ---

[1] http://dev.w3.org/html5/spec-LC/introduction.html#willful-violation
Comment 2 Sierk Bornemann 2012-06-07 12:04:58 UTC

*** This bug has been marked as a duplicate of bug 6684 ***
Comment 3 Jonathan Kingston 2012-06-07 12:30:56 UTC
Thanks, I did search but found nothing.