W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2005

Re: Problem with CSS validator?

From: David Dorward <david@dorward.me.uk>
Date: Tue, 8 Feb 2005 18:57:41 +0000
To: Shrisha Rao <shrirao1@mchsi.com>
Cc: www-validator-css@w3.org
Message-ID: <20050208185741.GA16572@us-lot.org>

On Tue, Feb 08, 2005 at 10:59:35AM -0600, Shrisha Rao wrote:
> I'm getting the following output (see attached PDF file) 

Its just text - a copy and paste would be easier to deal with then a
40k+ PDF file!

> when I try to validate the CSS for http://www.dvaita.net -- it does
> not look as if validation is taking place at all.  (The XHTML 1.1
> document is valid.)

Depending on which way you look at it, either this is a problem with
the CSS validator treating a document served as text/html as XHTML
instead of tag soup, or it is a problem with the Markup validator not
picking up a problem with your document. Either way, you "SHOULD NOT"
serve your XHTML 1.1 documents as text/html (according to

The error shows up on the CSS validator becuase it tries to process
XHTML documents using an XML parser. (The markup validator doesn't[1],
which is why it doesn't pick up the problem).

One of the rules of XML, it seems, prevents you placing comments
before the XML prolog (<?xml ...). As a result, when an XML parser
hits the prolog it throws a wobbly and refuses to continue parsing the

Given the various interesting effects of using XHTML according to the
spec, it would probably be easiest for you to drop back to using HTML
4.01 Strict (which is well supported by current user agents and
doesn't suffer those side effects).

[1] http://openjade.sourceforge.net/doc/xml.htm
David Dorward                                      http://dorward.me.uk
Received on Tuesday, 8 February 2005 18:57:44 UTC

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