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

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

From: David Dorward <david@dorward.me.uk>
Date: Fri, 26 Feb 2010 12:28:02 +0000
Cc: www-validator@w3.org
Message-Id: <50D510FE-C438-47BE-A465-42D787C3799F@dorward.me.uk>
To: David Oliver <david@doliver.co.uk>

On 26 Feb 2010, at 11: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.

To paraphrase the spec:

"If you use http-equiv="content-type", then it must be text/html and may include a character encoding. You must not use this if you are writing an XML document."


So the error is right, that is a bad value for the element. I don't know if the checker does XHTML5 checking - to test that you could create an HTML5 document that isn't well formed XHTML (e.g. with a <br> (and not a <br/> or </br>)) and serve it as application/xhtml+xml.

David Dorward
Received on Friday, 26 February 2010 12:28:39 UTC

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