W3C home > Mailing lists > Public > www-validator-css@w3.org > May 2004

Re: Bug in the validator (color format) ?

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 17 May 2004 20:36:25 +0300 (EEST)
To: www-validator-css@w3.org
Message-ID: <Pine.GSO.4.58.0405172026560.6586@korppi.cs.tut.fi>

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

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