- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Wed, 19 Nov 2008 17:36:39 -0500
- To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>
Purpose: This test was proposed by Ben Adida. It checks to ensure that the empty string "" isn't considered as NULL in languages such as Javascript when generating triples. This test sets the subject in a chain using @href and then immediately changes the subject using @about and generates a triple. A buggy parser may use the @href subject (http://example.org/javascript.html) instead of the one defined by @about. ====================== Test Case 120 ============================= ---------------------Test Case 120 XHTML------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"> <head> <title>Test 0120</title> </head> <body> <p> Check to see if Javascript parsers get confused when "" is interpreted as NULL in some chaining cases. <a href="http://example.org/javascript.html"><span about="" property="dc:creator">Ben</span></a> </p> </body> </html> ----------------------------------------------------------------- ---------------------Test Case 120 SPARQL ----------------------- ASK WHERE { <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0120.xhtml> <http://purl.org/dc/elements/1.1/creator> "Ben" . } ----------------------------------------------------------------- -- manu -- Manu Sporny President/CEO - Digital Bazaar, Inc. blog: POSIX Threads Don't Scale Past 100K Concurrent Web Requests http://blog.digitalbazaar.com/2008/09/30/scaling-webservices-part-1 blog: Fibers are the Future: Scaling Past 100K Concurrent Web Requests http://blog.digitalbazaar.com/2008/10/21/scaling-webservices-part-2
Received on Wednesday, 19 November 2008 22:37:16 UTC