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

Re: Test #113 with HTML5

From: Ivan Herman <ivan@w3.org>
Date: Fri, 9 Mar 2012 17:15:38 +0100
Cc: W3C RDFWA WG <public-rdfa-wg@w3.org>
Message-Id: <66A80DD0-B50C-46C5-B896-3FCFF64959C8@w3.org>
To: Gregg Kellogg <gregg@kellogg-assoc.com>, Manu Sporny <msporny@digitalbazaar.com>
Actually I realize that I cannot implement an extra measure for this. I get the DOM from the HTML5 parser and I have no way of finding out whether the new line has been added artificially or not...

Ivan

On Mar 9, 2012, at 17:07 , Ivan Herman wrote:

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


----
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:15:24 UTC

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