Re: text/javascript as default for type attribute

On Mon, 02 Apr 2007 23:56:14 +0300, Anne van Kesteren <annevk@opera.com>  
wrote:

> On Mon, 02 Apr 2007 21:00:26 +0200, Vitaly Harisov <vitaly@harisov.name>  
> wrote:
>> I suggest to define 'text/javascript' as default value to script's  
>> 'type' attribute.
>
> HTML5 has done this. <style> now also defaults to text/css. Which is  
> what a lot of web pages out there already rely on anyway.

As I see HTML5 not defaults 'type' to any MIME type:

The language of the script is given by the type attribute.
The value must be a valid MIME type, optionally with parameters. [RFC2046]

http://www.whatwg.org/specs/web-apps/current-work/#script

-- 
The End

Received on Tuesday, 3 April 2007 07:37:37 UTC