W3C home > Mailing lists > Public > www-validator@w3.org > April 2002

[BUG] style attribute without specifying CSS

From: Karl Dubost <karl@w3.org>
Date: Wed, 3 Apr 2002 19:24:05 -0500
Message-Id: <p0510159db8d14cac5b08@[]>
To: www-validator@w3.org, www-validator-css@w3.org
I have found something, maybe already known, The HTML validator and 
the CSS validator can't detect this file is wrong :


This file has a style attribute style="color: green; border: solid 
red;" but no metaname specifying the default stylesheet language. So 
by definition, the file is not a valid one :

HTML 4.01 says in the chapter "Style Sheets in HTML documents 
(14.2.1)" [1]  "Documents that include elements that set the style 
attribute but which don't define a default style sheet language are 

2002-04-03 The HTML validator says the file is valid.

2002-04-03 The CSS validator does not find any style and says there 
are no errors.

[1] http://www.w3.org/TR/1999/REC-html401-19991224/present/styles.html#h-14.2.1

Karl Dubost / W3C - Conformance Manager

      --- Be Strict To Be Cool! ---
Received on Wednesday, 3 April 2002 19:24:08 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:16 UTC