W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2009

Re: ISSUE-2275 (script_type_processing): Define processing for @type in script elements [SVG Core 2.0]

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 3 Jun 2009 12:27:53 +1000
To: public-svg-wg@w3.org
Message-ID: <20090603022753.GC13352@arc.mcc.id.au>
Chris Lilley:
> Incidentally, why is HTML5 making the default be text/javascript
> rather than application/ecmascript?

The argument is:

  * Processing requirements for text/javascript and
    application/ecmascript don’t differ in HTML 5.

  * RFC 4239 is not referenced because it makes requirements that are
    incompatible with some requirements in HTML 5, such as determining
    encoding of scripts.

  * The name "text/javascript" is much more widely used in practice.

  * Changing the default script type to application/ecmascript then
    would not result in changes to implementation requirements, so
    given that text/javascript is used more widely, that is what is
    used.

Some IRC discussion that teased these arguments out:

  http://krijnhoetmer.nl/irc-logs/whatwg/20090603#l-81

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 3 June 2009 02:30:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 June 2009 02:30:14 GMT