Re: CSS + validation

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 UTC