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

[whatwg] charset attribute of HTMLScriptElement

From: Toshirou Takahashi <tato@fureai.or.jp>
Date: Sun, 01 May 2005 12:24:59 +0900
Message-ID: <20050501122151.C07C.TATO@fureai.or.jp>

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

now :(Working Draft ? 29 April 2005)

	interface HTMLScriptElement : HTMLElement {
		attribute DOMString text;
		attribute DOMString src;
		attribute DOMString type;
	}; 

i hope :

	interface HTMLScriptElement : HTMLElement {
		attribute DOMString text;
		attribute DOMString src;
		attribute DOMString type;
		attribute DOMString charset;
	};


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. 


By the way,

DOM 1
http://www.w3.org/TR/DOM-Level-1/level-one-html.html#ID-81598695

	interface HTMLScriptElement : HTMLElement {
		attribute DOMString text;
		attribute DOMString htmlFor;
		attribute DOMString event;
		attribute DOMString charset;
		attribute boolean defer;
		attribute DOMString src;
		attribute DOMString type;
	};

HTML4.0
http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1

<!ELEMENT SCRIPT - - %Script; -- script statements -->
<!ATTLIST SCRIPT
  charset %Charset; #IMPLIED -- char encoding of linked resource --
  type %ContentType; #REQUIRED -- content type of script language --
  src %URI; #IMPLIED -- URI for an external script --
  defer (defer) #IMPLIED -- UA may defer execution of script --
>

Regards,
-- 
Toshirou Takahashi 
<http://jsgt.org/mt/01/>
Received on Saturday, 30 April 2005 20:24:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:22 UTC