Test #113 with HTML5

Another tiny difference between HTML5 and XHTML...

Test #113 is:

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

and expects

ASK WHERE {
	<$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

----
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