W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Re: Determining Script Type

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 14 May 2008 07:24:02 +0000 (UTC)
To: Jim Jewett <jimjjewett@gmail.com>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0805140723510.12911@hixie.dreamhostps.com>

On Tue, 7 Aug 2007, Jim Jewett wrote:
> 
> In http://lists.w3.org/Archives/Public/public-html/2007Aug/0354.html, 
> Smylers said that the overall default should be "text/javascript", and 
> pointed out that the algorithm was for parsing, not authors.  This 
> allows further simplification, and I suggest replacing step 1 of 
> http://www.whatwg.org/specs/web-apps/current-work/#running0 with the 
> following
> 
> """
> The script's type is determined by the value of the script element's
> type attribute.
> 
> A type attribute which is either missing or equal to the empty string
> indicate the default value of "text/javascript", for ECMAScript.
> Otherwise, the attribute's value (which SHOULD be a valid MIME type)
> is used directly.
> 
> For backwards compatibility, if the type attribute is missing (not
> just empty, but missing), user agents SHOULD also check the language
> attribute.  If language is present (and not equal to the empty
> string), then the script's type is treated as "text/" + the value of
> the language attribute.
> """

I don't understand what problem this is solving.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 14 May 2008 07:24:40 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:31 UTC