[whatwg] about 2.12. Scripting

Toshirou Takahashi tato at game.gr.jp
Mon Apr 25 04:25:25 PDT 2005


hi(^^)/

about 2.12. Scripting

http://whatwg.org/specs/web-apps/current-work/#the-script
interface HTMLScriptElement : HTMLElement {
           attribute DOMString text;
           attribute DOMString src;
           attribute DOMString type;
};


Why isn't there Charset attribute ?

i think ... the charset attribute is necessary for Script Tag.
Because, beforehand, we do not know charset that read by src attribute.


reference:
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 --
  >

DOM1
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;
};

MSDN
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/script.asp

--
Toshirou Takahashi <tato at game.gr.jp>
http://allabout.co.jp/career/javascript/profile/mbiopage.htm
http://jsgt.org/mt/01/





More information about the whatwg mailing list