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

Re: CSS + validation

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 24 Dec 2004 10:19:34 +0200 (EET)
To: Pedro Ernesto <pedrowarrior@terra.com.br>
Cc: www-validator-css <www-validator-css@w3.org>
Message-ID: <Pine.GSO.4.58.0412241007530.9871@korppi.cs.tut.fi>

On Thu, 23 Dec 2004, Pedro Ernesto wrote:

> I was trying to validate my css code, when I saw this message :
> " No error or warning found
> To work as intended, your CSS style sheet needs a correct document
> parse tree. This means you should use valid HTML "

It is technobabble that the "validator" _always_ spit out - even
if I just validated my HTML document, then followed the recommendation to
"validate" the CSS as well!

It _also_ issues the same message when someone asks it to check a CSS file
that has absolutely nothing to do with HTML but will be used to format an
XML file (which naturally does _not_ need to be valid for the purpose,
though it should probably be well-formed).

That is, the message is in no way related to your HTML or your CSS.
It's like asking someone (or a program) to check the grammar of your
English text and seeing the checker babble "To work as intended,
your text should also have the facts right". Even if the text is a piece
of fiction.

> my code has no errors.

Maybe. We cannot really tell.

> What should I do ??

Regarding this message, nothing. Regarding Web authoring in general,
it is advisable to use both a markup validator and the CSS checker called
"validator" - as well as a spelling checker, if available, and other
checking tools.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 24 December 2004 08:20:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:15 GMT