[whatwg] charset attribute of HTMLScriptElement
Toshirou Takahashi
tato at fureai.or.jp
Sat Apr 30 20:24:59 PDT 2005
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/>
More information about the whatwg
mailing list