W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2001

[BUG] Style attributes

From: Karl Dubost <karl@w3.org>
Date: Mon, 3 Sep 2001 14:21:30 +0200
Message-Id: <p05101004b7b9246bc47b@[]>
To: www-validator-css@w3.org
Cc: plh@w3.org

if the content of a style attributes is invalid, the document is still valid.


<p style="width:300; backgroung:black;">text</p>

The correct form is

<p style="width:300px; backgroung:black;">text</p>

A possible work-out to deal with it (Thanks to have help to identify problems)

When the meta says, we are using CSS stylesheet.

1. Look for elements in the HTML document (avoid processing 
instructions, comments, etc, and examples in the text, ...)
2. Make a list of inside elements <ELEMENT list_of_attributes></ELEMENT>
3. identify the "style" attribute.
4. parse the list of proprieties and try to validate them.

BTW, it could be already a list of knwon bugs ;) it would be good to 
have a todo list or list of known bugs on the validator pages ;)


Karl Dubost / W3C - Conformance Manager

      --- Be Strict To Be Cool! ---
Received on Monday, 3 September 2001 08:24:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:35 UTC