W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: text/javascript as default for type attribute

From: Jeff Cutsinger <jeff@cutsinger.org>
Date: Mon, 02 Apr 2007 15:04:19 -0500
Message-ID: <461161C3.1050802@cutsinger.org>
To: Dean Edwards <dean@edwards.name>
CC: Vitaly Harisov <vitaly@harisov.name>, public-html@w3.org
Dean Edwards wrote:
> Jeff Cutsinger wrote:
>> Vitaly Harisov wrote:
>>> I suggest to define 'text/javascript' as default value to script's
>>> 'type' attribute.
>>>
>>
>> Except that text/javascript is deprecated. The default should be
>> application/javascript.
>>
> 
> Actually it's:
> 
> application/x-javascript
> 
> -dean

No, actually it's application/javascript. From RFC4329:

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

See also http://www.iana.org/assignments/media-types/application/, which
lists javascript and ecmascript.

Jeff Cutsinger

Received on Monday, 2 April 2007 20:04:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:52 GMT