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

Re: validator vs. apache's content negotiation

From: Paul Norman <penorman@mac.com>
Date: Wed, 8 Dec 2004 20:41:57 -0800
Message-Id: <A86683DA-499C-11D9-96CA-00039399C742@mac.com>
Cc: www-validator-css@w3.org
To: scragz <scragz@hotmail.com>

On 8-Dec-04, at 12:47 AM, scragz wrote:
> I'm getting grief from a client because the CSS validator is giving
> errors on his site [1]. The problem is that I have PHP parse the
> stylesheets because I'm lazy and don't want to deal with all of the
> cross-browser hacks when PHP can do a simple UA detect; so the files
> are named "style.css.php", etc. I use Apache's content negotiation [2]
> to make the <link> be to "style.css" so no-one gets weirded out by
> the .php suffix.
I actually looked into this with the exact same error message on my  
site.
If you look at what happens when the validator sends the request
your server returns a 406 error. The validator sends the accept header
"text/css,text/html,text/xml,application/xhtml+xml,application/ 
xml,image/svg+xml,*/*;q=0"

One way to fix this is to use mod_rewrite. At least, that's how I plan  
to fix it.


> Every browser handles this fine and I can't tell why
> the validator doesn't.
Browsers are willing to accept */* files and the validator isn't.

The stylesheet linked to from http://www.marduke.com/ currently  
exhibits this
behaviour and will continue to do so until I get the time to fix it.
Received on Thursday, 9 December 2004 04:42:31 GMT

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