W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

Re: Scripts...

From: Ville Skyttä <ville.skytta@iki.fi>
Date: 11 May 2002 00:06:39 +0300
To: Liam Quinn <liam@htmlhelp.com>
Cc: Evelyn Hunter <boots@aloha.net>, www-validator@w3.org
Message-Id: <1021064799.2132.169.camel@bobcat.ods.org>
On Fri, 2002-05-10 at 23:47, Liam Quinn wrote:

> > Um, since we are on the topic of Scripts, and not to diverge, but how on
> > earth do you get JavaScript passed XHTML?  It wants a "type" and I don't
> > know what "type will satisfy the validator and not kill the script.  Any
> > ideas?
> type="text/javascript"

Maybe a nitpick thingy, but I'd rather not recommend using
"text/javascript" since it is not officially registered in IANA [1].

"application/x-javascript" would IMHO be a better, more established
choice, that's what for example Apache sends by default.  See also [2].

[1] <URL:http://www.iana.org/assignments/media-types/>
[2] <URL:http://www.robinlionheart.com/stds/html4/scripts.html>

Ville Skyttä
Received on Friday, 10 May 2002 17:07:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT