Re: Bug in the validator (color format) ?

On Mon, 17 May 2004 catchall@skynet.be wrote:

>   The CSS Validator fails to parse this simple
> stylesheet :
>
>     P {
>         color: #f00 ;
>     }
- -
>   This stylesheet reproduces the problem :
>
>     <URL:http://users.skynet.be/fgeorges/tmp/BUG-w3c-css-validator.css>

It was very essential to include the URL (though it seems to have been
hidden from several mail programs, since you used a mixture of HTML format
and plain text - please post in plain text only).

The style sheet at that URL contains octet 160 (decimal) right before the
semicolon. Technically, it is undefined, since 160 is not in the ASCII
range and no character encoding was specified. But setting the encoding,
either in HTTP headers or using
@charset "iso-8859-1";
at the start of the CSS file, does not help - since the meaning of 160 in
iso-8859-1 is NO-BREAK SPACE, which is not allowed as a whitespace
character in CSS. Replacing it by a normal space fixes the problem.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Monday, 17 May 2004 13:36:51 UTC