<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,7 +17,7 @@ module MarkupValidity
 
     ###
     # Assert that +xhtml+ is valid XHTML+RDFa
-    def asser_xhtml_rdfa xhtml
+    def assert_xhtml_rdfa xhtml
       validator = Validator.new xhtml, Validator::XHTML1_RDFA
       assert validator.valid?, validator.inspect
     end</diff>
      <filename>lib/markup_validity/assertions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -39,7 +39,7 @@ module Spec
     ###
     # Assert that something is XHTML+RDFa
     def be_xhtml_rdfa
-      Matcher.new :be_xhtml_strict do
+      Matcher.new :be_xhtml_rdfa do
         validator = nil
         match do |xhtml|
           validator = MarkupValidity::Validator.new(</diff>
      <filename>lib/markup_validity/rspec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,6 +28,46 @@ module MarkupValidity
       eoxhtml
     end
 
+    # snippets taken from http://www.w3.org/TR/rdfa-syntax/
+    def valid_document_xhtml_rdfa
+      &lt;&lt;-eoxhtml
+   &lt;html
+    xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
+    xmlns:foaf=&quot;http://xmlns.com/foaf/0.1/&quot;
+    xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot;
+    xmlns:cal=&quot;http://www.w3.org/2002/12/cal/ical#&quot;
+    xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
+    &gt;
+    &lt;head&gt;
+        &lt;title&gt;My home-page&lt;/title&gt;
+        &lt;meta property=&quot;dc:creator&quot; content=&quot;Mark Birbeck&quot; /&gt;
+        &lt;link rel=&quot;foaf:topic&quot; href=&quot;http://www.formsPlayer.com/#us&quot; /&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;div&gt;
+            &lt;p&gt;
+                I'm holding
+                &lt;span property=&quot;cal:summary&quot;&gt;
+                    one last summer Barbecue
+                &lt;/span&gt;,
+                on
+                &lt;span property=&quot;cal:dtstart&quot; content=&quot;2007-09-16T16:00:00-05:00&quot;
+                      datatype=&quot;xsd:dateTime&quot;&gt;
+                    September 16th at 4pm
+                &lt;/span&gt;.
+            &lt;/p&gt;
+
+            &lt;a xmlns:cc=&quot;http://creativecommons.org/ns#&quot;
+               rel=&quot;cc:license&quot;
+               href=&quot;http://creativecommons.org/licenses/by-nc-nd/3.0/&quot;&gt;
+                Creative Commons License
+            &lt;/a&gt;.
+        &lt;/div&gt;
+    &lt;/body&gt;
+&lt;/html&gt;
+eoxhtml
+    end
+
     def invalid_entity_document
       File.read(File.join(File.dirname(__FILE__), 'assets', 'invalid_entity.xhtml'))
     end</diff>
      <filename>test/helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -59,6 +59,11 @@ class TestMarkupValidity &lt; Test::Unit::TestCase
     assert_equal [true, ''], @fu.assertions.first
   end
 
+  def test_valid_xhtml_rdfa
+    @fu.assert_xhtml_rdfa valid_document_xhtml_rdfa
+    assert_equal [true, ''], @fu.assertions.first
+  end
+
   def test_invalid_xhtml
     @fu.assert_xhtml_transitional invalid_document
     assert_equal false, @fu.assertions.first.first
@@ -71,6 +76,12 @@ class TestMarkupValidity &lt; Test::Unit::TestCase
     assert_match('Missing child element', @fu.assertions.first.last)
   end
 
+  def test_invalid_xhtml_rdfa
+    @fu.assert_xhtml_rdfa invalid_document
+    assert_equal false, @fu.assertions.first.first
+    assert_match('Missing child element', @fu.assertions.first.last)
+  end
+
   def test_valid_schema
     xsd = File.join(File.dirname(__FILE__), 'assets', 'shipment.xsd')
     xml = File.join(File.dirname(__FILE__), 'assets', 'order.xml')</diff>
      <filename>test/test_markup_validity.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fadc3d0659b1b86d80c33c6b74669d4c034bf54a</id>
    </parent>
  </parents>
  <author>
    <name>Jason Ronallo</name>
    <email>jason@jaron.(none)</email>
  </author>
  <url>http://github.com/tenderlove/markup_validity/commit/1d415bf8bbab2c3b3f4eadab739c78740db83860</url>
  <id>1d415bf8bbab2c3b3f4eadab739c78740db83860</id>
  <committed-date>2009-08-04T14:35:03-07:00</committed-date>
  <authored-date>2009-08-04T14:35:03-07:00</authored-date>
  <message>correcting typos and adding tests for xhtml+rdfa</message>
  <tree>a7dba443b40d0b3ee7f8adbc280385d7a665ff9a</tree>
  <committer>
    <name>Jason Ronallo</name>
    <email>jason@jaron.(none)</email>
  </committer>
</commit>
