- From: Toby Inkster <tai@g5n.co.uk>
- Date: Tue, 01 Dec 2009 15:13:52 +0000
- To: Manu Sporny <msporny@digitalbazaar.com>
- Cc: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>
On Mon, 2009-11-30 at 23:03 +0000, Toby Inkster wrote: > Right now I'm passing all XHTML1 tests, and all but three of the HTML > tests (failing the same three in both HTML4 and HTML5). Last night I spent ages puzzling over why I was failing test 0121 in HTML4 and HTML5, but not XHTML1, and today it's come to me out of nowhere. <p about="http://example.org/"> <span about="[]" property="dc:title">Test Case 0121</span> checks to make sure RDFa processors resolve the empty CURIE correctly. <p resource="[]"> <span property="dc:contributor">Shane McCarron</span> contributed to this test. </p> </p> In HTML, paragraphs cannot be nested. (In XHTML1 this is invalid too, but well-formed.) Thus, in parsing, the opening of the second paragraph automatically closes the first paragraph. Thus the above parses as if it were: <p about="http://example.org/"> <span about="[]" property="dc:title">Test Case 0121</span> checks to make sure RDFa processors resolve the empty CURIE correctly. </p> <p resource="[]"> <span property="dc:contributor">Shane McCarron</span> contributed to this test. </p> So the subject of the second triple is the implicit about="" on the <body> element. So, as far as HTML parsing is concerned, my parser is right and the test case's SPARQL result is wrong. Suggestion: replace the second <p> element with <b> or something. My suggestion to drop test case 0113 from the HTML test suites still stands too. As I believe these two test cases in the HTML test suites are erroneous, I won't be changing my parser to "pass" them. Other than that, RDF::RDFa::Parser is now passing all the HTML4, HTML5 and XHTML1 tests. -- Toby A Inkster <mailto:mail@tobyinkster.co.uk> <http://tobyinkster.co.uk>
Received on Tuesday, 1 December 2009 15:14:32 UTC