Re: META Content-Script-Type

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
> WARNING.

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