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

Re: [VE][html5] XHTML5 content-type value

From: David Oliver <david@doliver.co.uk>
Date: Fri, 26 Feb 2010 13:01:55 +0100
Message-ID: <4B87B833.9000000@doliver.co.uk>
To: Henri Sivonen <hsivonen@iki.fi>
CC: www-validator@w3.org
Hi Henri,

Thanks for the reply.

I'm using PHP header() for the content-type (HTML for IE and XHTML for 
everything else is the idea), and the validator seems to report 
'application/xhtml+xml' okay.

As the validator doesn't report it can handle application/xhtml+xml in 
its accept header, the PHP code I'm using checks for the validators 
presence and serves the document as 'application/xhtml+xml' to it.



On 26/02/10 12:36, Henri Sivonen wrote:
> On Feb 26, 2010, at 13:11, David Oliver wrote:
>> Validating http://project-start.doliver.co.uk/
>> Error [html5]: "
>> Line 5, Column 67: Bad value content-type for attribute http-equiv on XHTML element meta.
>> ův="content-type" content="application/xhtml+xml"/>
>> "
>> My document isn't recognised as XHTML5 but, instead, as HTML5.
>> Is XHTML5 support still to be added?
> XHTML5 support is already there.
> You can't make a document be XHTML5 by using http-equiv. You need to put Content-Type: application/xhtml+xml on the real HTTP layer.
Received on Friday, 26 February 2010 12:02:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:00 UTC