W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > April 2012

Re: ISSUE-137 (Media Type): HTML+RDFa should normatively declare media types and describe how to identify relative to XHTML+RDFa 1.1 [RDFa 1.1 in HTML5]

From: Alex Milowski <alex@milowski.com>
Date: Wed, 25 Apr 2012 15:54:38 -0700
Message-ID: <CABp3FN+fwq9oD-QhMJQcqp6UUqxi1ct_901iOZ3iXcxxUKk9+g@mail.gmail.com>
To: RDF Web Applications Working Group <public-rdfa-wg@w3.org>
Sorry, to nitpick, but...

On Wed, Apr 25, 2012 at 3:41 PM, RDF Web Applications Working Group
Issue Tracker <sysbot+tracker@w3.org> wrote:
>
> There should also be an indication that XHTML mode HTML+RDFa 1.1 documents can be distinguished from XHTML+RDFa 1.1 documents by the lack of an XHTML DOCTYPE or @version.
>

If you look at HTML5's bit on XHTML parsing [1], you'll see that HTML5
XHTML syntax documents may contain a DOCTYPE.  So, the only
distinguishing feature is the possibility of a version attribute.  A
HTML5 XHTML parser would use the data URI for the listed public
identifiers.  As such, no defaulting of the version would happen.

I doubt there is a reliable way to tell them apart.

[1] http://www.w3.org/TR/html5/the-xhtml-syntax.html#parsing-xhtml-documents

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 25 April 2012 22:55:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:20 GMT