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>
The famous Html4 DTD tells us the following:

-----cut here to demage you monitor-----
<!ELEMENT STYLE - - %StyleSheet        -- style info -->
  %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

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

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:46 UTC