I18N-ISSUE-130: Health warning about no file-internal encoding in JS [HTML5-prep]

I18N-ISSUE-130: Health warning about no file-internal encoding in JS [HTML5-prep]

http://www.w3.org/International/track/issues/130

Raised by: Addison Phillips
On product: HTML5-prep

4.3.1 The script element
http://www.w3.org/TR/html5/scripting-1.html#the-script-element

Talking about the <script> element. We find this description of 'charset':

--
The charset attribute gives the character encoding of the external script resource. The attribute must not be specified if the src attribute is not present. If the attribute is set, its value must be a valid character encoding name, must be an ASCII case-insensitive match for the preferred MIME name for that encoding, and must match the encoding given in the charset parameter of the Content-Type metadata of the external file, if any.
--

Not sure if there should be a health warning here. Note that, unlike CSS, JavaScript files have no file-internal encoding announcement .

Received on Saturday, 23 July 2011 19:14:50 UTC