[whatwg] charset attribute of HTMLScriptElement

Wouldn't it be safer to declare the encoding in the js file itself?
It could be in a magic comment at the start of the document:
//@charset("utf8")
Not very elegant, but less error prone than to specify the encoding 
everywhere the file is included.

regards
Olav Junker Kj?r

Toshirou Takahashi wrote:
> i hope to add the charset attribute to HTMLScriptElement,
> on 2.12.1. The script element of The Web Applications 1.0
> http://whatwg.org/specs/web-apps/current-work/#the-script
> 
> Because the person who made .js file doesn't know whether 
> the file is used with what charset all over the world. 
> 
> For instance, there is someone using the file written with utf-8 
> on the page of shift_JIS and others. 

Received on Sunday, 1 May 2005 02:18:45 UTC