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

Test #113 with HTML5

From: Ivan Herman <ivan@w3.org>
Date: Fri, 9 Mar 2012 17:07:24 +0100
Cc: W3C RDFWA WG <public-rdfa-wg@w3.org>
To: Gregg Kellogg <gregg@kellogg-assoc.com>, Manu Sporny <msporny@digitalbazaar.com>
Message-Id: <62AFB4EC-8C05-4BDD-A5E6-11CE74260037@w3.org>
Another tiny difference between HTML5 and XHTML...

Test #113 is:

<!DOCTYPE html>
prefix="dc: http://purl.org/dc/elements/1.1/"
    <title>Test 0113</title>
    <span about="#a" property="dc:title"></span>
    <span about="#b" property="dc:title" />

and expects

	<$TCPATH/0113.xhtml#a> <http://purl.org/dc/elements/1.1/title> "" .
	<$TCPATH/0113.xhtml#b> <http://purl.org/dc/elements/1.1/title> "" .

However, if my understanding of the HTML5 document is correct:

As a general rule, elements whose content model allows any phrasing content [which is the case for span, Ivan] should have either at least one descendant Text node that is not inter-element whitespace, or at least one descendant element node that is embedded content. For the purposes of this requirement, nodes that are descendants of del elements must not be counted as contributing to the ancestors of the del element.

which seems to tell me that the second format, ie, <span ... /> is illegal in HTML5. The HTML5 parser understands it, and adds a new line, which is then of course kept by RDFa meaning the test will fail.

I will implement an extra measure for this case in the distiller, but I believe that test should not be around for HTML5.


Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Friday, 9 March 2012 16:07:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:56 UTC