[whatwg] Will you consider about RFC 4329?
James Kerr
locki at l0x.in
Tue Apr 6 02:32:01 PDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iF4EAREIAAYFAku6/5EACgkQA5dpS+2BZawJzgD/Vh5NYeOT2j0hKIiW59vVKzIG
mqhFmUbFhz2PsFFUUB4A/Asxy2C4HiBIp8FfoZ1Elz+4jTr7Ehhv1xSGKe8Xwl5k
=1FdY
-----END PGP SIGNATURE-----
More information about the whatwg
mailing list