The recommendation to use mime type application/xhtml+xml has the problem of not being compatible with for example Internet Explorer 6 (which has quite a market share) There are various recommendations about how to work around that at the httpd level by adding special rewrite rules handling internet explorer as a one off case. However, a better solution IMHO would be to use the http request Accept header, looking for the application/xhtml+xml string. This strategy works beautifully with firefox, safarai and Internet Explorer, but the w3 validator unfortunately doesn't send any Accept headers, which makes a apache httpd server with the rewrite rules specified below outputting a warning that the server does send text/ html instead of application/xhtml+xml In other words, adding "Accept: application/xhtml+xml, */*" to the requests of the validator would be a nice thing. My rewrite rules: RewriteEngine on RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml RewriteCond %{REQUEST_URI} \.xhtml$ RewriteRule .* - [T=text/html] -- I guess normalcy is not really our style. -- JunoReceived on Friday, 18 April 2008 21:50:09 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:29 GMT