W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > October 2009

Re: Empty span/div tags in RDFa pages

From: Toby Inkster <tai@g5n.co.uk>
Date: Mon, 26 Oct 2009 23:18:05 +0000
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Stephane Corlosquet <scorlosquet@gmail.com>, RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>
Message-Id: <1256599085.25705.12.camel@ophelia2.g5n.co.uk>
On Mon, 2009-10-26 at 18:40 +0100, Julian Reschke wrote:
> Which of course is caused by the fact that you simply can't serve
> XHTML as text/html. The media type is authoritative, so recipients
> will treat it as HTML.

I think this is something that is often overstated.

RFC 2854 notes that "different versions [of HTML] are distinguishable by
the DOCTYPE declaration contained within them", so -- assuming that
XHTML is a "version" of HTML, whatever that means -- it is not incorrect
behaviour to detect an XHTML DOCTYPE and perform version-specific
parsing on the content.

I realise that many popular user agents (especially desktop browsers) do
not do this, but that doesn't make it wrong to do so.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Monday, 26 October 2009 23:18:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 26 October 2009 23:18:54 GMT