W3C home > Mailing lists > Public > www-validator@w3.org > April 2007

Re: [ANN] Beta test of the W3C Markup Validator (0.8.0 beta 1)

From: olivier Thereaux <ot@w3.org>
Date: Tue, 24 Apr 2007 19:14:37 +0900
Message-Id: <F536DCCC-9C3F-4AED-917B-47612A085A6A@w3.org>
Cc: Sam Ruby <rubys@intertwingly.net>, "www-validator@w3.org Community" <www-validator@w3.org>
To: Sierk Bornemann <sierkb@gmx.de>

Hi Sierk,

On Apr 24, 2007, at 18:53 , Sierk Bornemann wrote:
> The MIME type on sierkbornemann.de is rewritten and set via a  
> mod_rewrite rule as follows:
>
> <IfModule mod_rewrite.c>
>     RewriteEngine on
>     RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
>     RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
>     RewriteCond %{REQUEST_URI} \.html$
>     RewriteCond %{THE_REQUEST} HTTP/1\.1
>     RewriteRule .* - [T=application/xhtml+xml;charset=UTF-8]
> </IfModule>

> "Conflict between Mime Type and Document Type
> The document is being served with the text/html Mime Type which is  
> not a registered media type for the XHTML 1.1 Document Type. The  
> recommended media type for this document is: application/xhtml+xml
> ...
> " ?

The rule for XHTML 1.1 is that it should always be served as  
application/xhtml+xml. The technique you are using, to serve it  
conditionally as text/html, goes against that rule.

-- 
olivier
Received on Tuesday, 24 April 2007 10:14:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:24 GMT