[whatwg] charset attribute of HTMLScriptElement

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.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 1 May 2005 06:03:48 UTC