[whatwg] charset attribute of HTMLScriptElement

Olav Junker Kjær olav at olav.dk
Sun May 1 02:18:45 PDT 2005

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:
Not very elegant, but less error prone than to specify the encoding 
everywhere the file is included.

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. 

More information about the whatwg mailing list