2.2.53 [HTML] Section 18.2.2, Specifying the scripting language

V0120:

The specification states:

 Authors should specify the default scripting language for all scripts in a document 
 by including the following META declaration in the HEAD:
  
 <META http-equiv="Content-Script-Type" content="type">
 where "type" is a content type naming the scripting language.

All Document Modes (All Versions)

META declaration has no effect and is ignored. Rather, if no type is specified for a script tag, JavaScript is used as a default.

V0121:

The specification states:

 In the absence of a META declaration, the default can be set by a "Content-Script-
 Type" HTTP header.Content-Script-Type: typewhere "type" is again a content type 
 naming the scripting language.

All Document Modes (All Versions)

The HTTP header is ignored. If the script tag does not specify a type the browser default is used.

V0122:

The specification states:

 User agents should determine the default scripting language for a document 
 according to the following steps (highest to lowest priority):1. If any META 
 declarations specify the "Content-Script-Type", the last one in the character 
 stream determines the default scripting language.

All Document Modes (All Versions)

Any META element that specifies an http-equiv attribute with a value of Content-Script-Type is ignored.

V0123:

The specification states:

 User agents should determine the default scripting language for a document 
 according to the following steps (highest to lowest priority):2. Otherwise, if any 
 HTTP headers specify the "Content-Script-Type", the last one in the character 
 stream determines the default scripting language.

All Document Modes (All Versions)

Any META element that specifies an http-equiv attribute with a value of Content-Script-Type is ignored.

C0054:

The specification states:

 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.

All Document Modes (All Versions)

There is no support for a default scripting language that can be set by the page author. JavaScript is always used as a default unless explicitly overridden by a SCRIPT element.

C0055:

The specification states:

 However, scripts should refer to an element according to its assigned name. 
 Scripting engines should observe the following precedence rules when identifying an 
 element: a name attribute takes precedence over an id if both are set. Otherwise, 
 one or the other may be used.

All Document Modes (All Versions)

This requirement does not apply to JavaScript or VBScript. These two languages have separate and distinct ways to identify an element by id or name, based on the author’s requirements.