Bug in Test Case 121 description

View: New views
1 Messages — Rating Filter:   Alert me  

Bug in Test Case 121 description

by Gregg Kellogg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Test case 121's description is '"[]" is a valid safe CURIE', when it should be '"[]" is not a valid safe CURIE'. The Ruby RDFa parser passes this, because it treats [] as an alias for the current subject, rather than ignoring it.

The problem came to light when I was trying to generate a triple to describe a <script> as property of the current page using the following test case:

<?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">
   <head about="http://example.com/9999.xhtml">
      <script src="/javascripts/jrails.js" rev="ex:script" resource="[]" type="text/javascript"></script>
   </head>
   <body>
   </body>
</html>
</html>

This test case generates a triple using my parser, but should not generate anything.