W3C home > Mailing lists > Public > www-validator-css@w3.org > August 2006

Re: Attribute order affects validation result

From: David Dorward <david@dorward.me.uk>
Date: Sun, 20 Aug 2006 02:40:22 +0100
Message-ID: <44E7BD86.2010602@dorward.me.uk>
To: Christoph Schneegans <Christoph@Schneegans.de>
CC: www-validator-css@w3.org

Christoph Schneegans wrote:
> <http://jigsaw.w3.org/css-validator/validator?uri=http://schneegans.de/temp/space-preserve-fail.html>
> has exactly the same canonical form, the only difference is in the
> attribute order of the root element, yet the CSS Validator reports a
> misleading error:
> 
>   Parse Error - space='preserve' type='text/css'>p { color: blue; }

Your document is being served as text/html, but isn't a valid XHTML 1.0
document that conforms to the Appendix C guidelines.

Serving it with the correct content type produces a "valid" response.

http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fdorward.me.uk%2Ftmp%2Fxhtml%2Fstyle%2Fspace-preserve-fail.xhtml

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is
Received on Sunday, 20 August 2006 01:41:34 GMT

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