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

Re: text/javascript as default for type attribute

From: Vitaly Harisov <vitaly@harisov.name>
Date: Tue, 03 Apr 2007 10:36:48 +0300
To: "Anne van Kesteren" <annevk@opera.com>, public-html@w3.org
Message-ID: <op.tp6529cahtdgnm@beam.yandex>

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

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


The End
Received on Tuesday, 3 April 2007 07:37:37 GMT

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