Tidy doesnt require 'type' on 'style'

Hi,
The famous Html4 DTD tells us the following:


-----cut here to demage you monitor-----
<!ELEMENT STYLE - - %StyleSheet        -- style info -->
<!ATTLIST STYLE
  %i18n;                               -- lang, dir, for use with title --
  type        %ContentType;  #REQUIRED -- content type of style language --
                              ^^^^^^^^
-----cut here to demage you monitor-----


So the type attribute is required, but tidy gives not even a warning if it
is missing, like it does for the <SCRIPT> Element where 'type' also is
required.

I suggest to insert a type="text/css" automatically.

regards,
 Bjoern Hoehrmann

Received on Wednesday, 7 July 1999 15:37:37 UTC