Consider these two lines:
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
From the W3's documentation on Scripting, in the section The default scripting language:
Authors should specify the default scripting language for all scripts in a document by including the following META declaration in the HEAD
Yet it continues in Local declaration of a scripting language to say:
The type attribute must be specified for each SCRIPT element instance in a document. The value of the type attribute for a SCRIPT element overrides the default scripting language for that element.
Seems to me like there's an over-specification here. Why are both the meta
and per-script
type declarations required? What's the point of a mandatory default if we 'must' declare each tag individually anyway?
Either let the default be the default, or just state that each tag needs it's own type - or is the wording here just getting me tripped up? The same language is used with reference to style sheets as well.