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

[whatwg] about 2.12. Scripting

From: Toshirou Takahashi <tato@game.gr.jp>
Date: Mon, 25 Apr 2005 20:25:25 +0900
Message-ID: <20050425193543.603E.TATO@game.gr.jp>
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/
Received on Monday, 25 April 2005 04:25:25 UTC

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