Re: The script element

On Monday 2009-08-03 14:01 +0200, Geoffrey Sneddon wrote:
> Off that list, only IE and Chromium support text/javascript1.1,  
> text/javascript1.2, and text/javascript1.3, and nothing supports the  
> remainder of the text/javascript1.* media types (it appears Firefox and  
> Opera don't treat @language as "text/" + @language, with Firefox having  
> a separate list for @language, while Opera just ignores @language  
> completely).

For what it's worth, Mozilla supports the types: "text/javascript",
"text/ecmascript", "application/javascript",
"application/ecmascript", and "application/x-javascript", and
supports a "version" parameter on all of those types, which is in
the range 1.0 to 1.8 (exact string match, not numeric match), and
also an "e4x" parameter taking values "0" or "1" (for example,
"text/javascript; version=1.7").  Which version is specified turns
on/off a number of language features that may be
backwards-incompatible.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Monday, 3 August 2009 15:06:53 UTC