W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

Tidy doesnt require 'type' on 'style'

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 7 Jul 1999 21:36:27 +0200
Message-ID: <005601bec8b0$06402920$c7e0a8c0@de>
To: <html-tidy@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT