Re: text/javascript as default for type attribute

On Tue, 03 Apr 2007 09:36:48 +0200, Vitaly Harisov <vitaly@harisov.name>  
wrote:
> 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 attribute is already optional, how exactly it is processed by user  
agents is not yet defined. The idea is though that it defaults to an  
ECMAScript MIME type.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Tuesday, 3 April 2007 08:37:44 UTC