W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2005

[whatwg] charset attribute of HTMLScriptElement

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 1 May 2005 13:03:48 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0505011254400.26870@dhalsim.dreamhost.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:41 UTC