Join us today to reply or post a new message! or Login as user: password:   :: lost password

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Just found a funny things..

in HTML4's dtd,

language is not valid, i.e.

<!ELEMENT SCRIPT - - %Script;          -- script statements -->
  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 --
  event       CDATA          #IMPLIED  -- reserved for possible future
use --
  for         %URI;          #IMPLIED  -- reserved for possible future
use --

But in XHTML, language is valid (although type is still required)

<!ELEMENT script (#PCDATA)>
<!ATTLIST script
  id          ID             #IMPLIED
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #REQUIRED
  language    CDATA          #IMPLIED
  src         %URI;          #IMPLIED
  defer       (defer)        #IMPLIED
  xml:space   (preserve)     #FIXED 'preserve'


Site Timeline