W3C home > Mailing lists > Public > www-validator@w3.org > September 2011

Re: HTML5 + xmlns validation issue

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Fri, 9 Sep 2011 15:51:03 +0200
To: David Dorward <david@dorward.me.uk>
Cc: "www-validator@w3.org Community" <www-validator@w3.org>
Message-ID: <20110909155103346190.69846788@xn--mlform-iua.no>
David Dorward, Fri, 9 Sep 2011 14:06:12 +0100:
> On 8 Sep 2011, at 17:44, Silvia Malatini wrote:
>> What is wrong with this? Is HTML5 not supporting namespaces? Or is 
>> the validator still incomplete? Or are we making any mistake?
> From the specification "The HTML syntax does not support namespace 
> declarations, even in foreign elements."
> http://www.w3.org/TR/html5/syntax.html#syntax

That's not the complete picture. The same document, HTML5, also permits 
xmlns="http://www.w3.org/1999/xhtml" in HTML. Not because it has any 
effect in HTML served as text/html, but in order to permit syntactic 
compatibility with XML parsers and XML producers.

The problem is thus also that the W3C's HTML5 validation service is 
incomplete/scewed: It supports HTML5+Microdata syntax, but stamps it as 
pure HTML5. [1] On the other side, it does not support HTML5+RDFa. If 
it did support HTML5+RDFa, then it would have been possible to declare 
the facebook prefix without being stamped as non-conforming. [2]

[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=14020
[2] http://www.w3.org/Bugs/Public/show_bug.cgi?id=14097
Leif Halvard Silli
Received on Friday, 9 September 2011 13:51:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:23 UTC