[BUG] Style attributes

Philippe,

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

Example:

<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 ;)

Thanks.

-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/QA/

      --- Be Strict To Be Cool! ---

Received on Monday, 3 September 2001 08:24:19 UTC