[whatwg] charset attribute of HTMLScriptElement

Ian Hickson ian at hixie.ch
Sun May 1 06:03:48 PDT 2005

On Sun, 1 May 2005, Toshirou Takahashi wrote:
> i hope to add the charset attribute to HTMLScriptElement, on 2.12.1.
> Because the person who made .js file doesn't know whether the file is 
> used with what charset all over the world.

You can already do this -- just include the correct encoding information 
in the Content-Type header for the JS file, as in:

   Content-Type: text/javascript;charset=utf-8

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list