W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Will you consider about RFC 4329?

From: James Kerr <locki@l0x.in>
Date: Tue, 06 Apr 2010 10:32:01 +0100
Message-ID: <4BBAFF91.7090208@l0x.in>
Hash: SHA256

Ian Hickson <ian at hixie.ch> wrote:
> On Mon, 5 Apr 2010, Swampert wrote:
>> In your HTML5 draft standard, the default value for type attribute in 
>> script element is "text/javascript". While according to RFC 4329, the 
>> MIME type "text/javascript" is obsolete, the proper MIME type for 
>> JavaScript is "application/javascript" or "application/ecmascript".
> The type everyone uses is text/javascript. What's the point of using 
> application/javascript? What problem does it solve?

I believe this has to do with character encoding issues and is the same
reason that application/xml is preferred over text/xml. MIME types in the
text/* set apparently have a default encoding of US-ASCII which I can
imagine may throw up conflicts in some situations given that the primary and
generally accepted encoding for XML and HTML documents (and increasingly
other applications in general) is Unicode based.
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Received on Tuesday, 6 April 2010 02:32:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC