W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: META Content-Script-Type

From: Tim Bagot <tsb-w3-validator-0004@earth.li>
Date: Wed, 6 Jun 2001 11:00:07 +0000 (UTC)
To: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33.0106061033400.609-100000@windle.hack>
At 2001-06-06T09:42+0200, Jochem Heicke wrote:-

> As there had been some messages about
> <META HTTP-EQUIV="Content-Script-Type"
> CONTENT="text/javascript;">
> recently. I would like to ask for a clarification.
> As I understand this, the above META should signal the
> browser to add
> "javascript:" to every EVENT handling statement.

No. It tells the browser that the values of event attributes should be
interpreted as the specified language, in this case JavaScript (although
no text/javascript MIME type has actually been registered).

> Would this mean in practice that without that META you
> should better add
> "javascript:" and with that META you MUST NOT?

It should not be added in either case. The value of each of these
attributes is a script, not a URI. (There is no javascript: URI scheme
either, FWIW.) It is an error to use these attributes without specifying
the default scripting language.

> If it is that way than the VALIDATOR should give some

The W3C validator is a strict SGML validator, and therefore cannot be
expected to cover anything not expressed in the SGML declaration and DTD.
There have previously been suggestions that it might generate warnings
about other errors in a document in the future. If this were to happen,
then it might, for example, detect the use of intrinsic events without a
default scripting language.

Tim Bagot
Received on Wednesday, 6 June 2001 07:00:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:30 UTC