Re: text/javascript as default for type attribute

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 UTC