<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,7 +18,7 @@ class Microformat
 
       extract_base_url! target
       
-      @doc = build_doc(@options[:text] ? @options : target)
+      @doc = target.kind_of?(Hpricot::Elem) ? target : build_doc(@options[:text] ? @options : target)
 
       microformats = find_occurences(@doc)
       raise MicroformatNotFound if @options[:strict] &amp;&amp; microformats.empty?</diff>
      <filename>lib/microformat.rb</filename>
    </modified>
    <modified>
      <diff>@@ -143,7 +143,7 @@
   &lt;span class=&quot;fn org&quot;&gt;&lt;a href=&quot;/venue/3804/&quot;&gt;Calvin College: Fine Arts Centre&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
   &lt;div class=&quot;address adr&quot;&gt;
     &lt;span class=&quot;street-address&quot;&gt;3210 Burton SE&lt;/span&gt;&lt;br /&gt;
-    &lt;span class=&quot;locality&quot;&gt;Grand Rapids&lt;/span&gt;, &lt;span class=&quot;region&quot;&gt;Michigan&lt;/span&gt; &lt;span class=&quot;postal-code&quot;&gt;&lt;/span&gt;
+    &lt;span class=&quot;locality&quot;&gt;Grand Rapids&lt;/span&gt;, &lt;span class=&quot;region&quot;&gt;Michigan&lt;/span&gt; &lt;span class=&quot;postal-code&quot;&gt;49546&lt;/span&gt;
 
   &lt;/div&gt;
     &lt;span class=&quot;geo&quot; style=&quot;display: none&quot;&gt;</diff>
      <filename>test/fixtures/upcoming_single.html</filename>
    </modified>
    <modified>
      <diff>@@ -29,6 +29,25 @@ context &quot;A simple hcard definition&quot; do
   end
 end
 
+context &quot;The hCard found in the upcoming_single page&quot; do
+  setup do
+    $upcoming_text = HCard.find(:text =&gt; open(fixture(:upcoming_single)).read) 
+    $upcoming_find = HCard.find(fixture(:upcoming_single))
+  end
+  
+  specify &quot;should be identical whether passed as :text or found with default method&quot; do
+    $upcoming_text.fn.should.equal                    $upcoming_find.fn
+    $upcoming_text.org.should.equal                   $upcoming_find.org
+    $upcoming_text.adr.base_url.should.equal          $upcoming_find.adr.base_url
+    $upcoming_text.adr.postal_code.should.equal       $upcoming_find.adr.postal_code
+    $upcoming_text.adr.locality.should.equal          $upcoming_find.adr.locality
+    $upcoming_text.adr.region.should.equal            $upcoming_find.adr.region
+    $upcoming_text.adr.street_address.should.equal    $upcoming_find.adr.street_address
+    $upcoming_text.geo.longitude.should.equal         $upcoming_find.geo.longitude
+    $upcoming_text.geo.latitude.should.equal          $upcoming_find.geo.latitude
+  end
+end
+
 context &quot;The parsed fauxtank hCard object&quot; do
   setup do
     $fauxtank ||= HCard.find(:first =&gt; fixture(:fauxtank))</diff>
      <filename>test/hcard_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1a737bc6d4ea4404217729bcb612452dc14d1b2c</id>
    </parent>
  </parents>
  <author>
    <name>Ben Kerney</name>
    <email>bkerney@bkerney.opb.org</email>
  </author>
  <url>http://github.com/defunkt/mofo/commit/e9d951e07094409feff2c69d8c89406332bd9c16</url>
  <id>e9d951e07094409feff2c69d8c89406332bd9c16</id>
  <committed-date>2008-05-13T11:02:33-07:00</committed-date>
  <authored-date>2008-05-13T11:02:33-07:00</authored-date>
  <message>fixed find and added test/fixture because hCards passed in via the :text option were missing postal_code</message>
  <tree>ab9ca09894b02e200f3d7ad8c7b49da363d988fb</tree>
  <committer>
    <name>Ben Kerney</name>
    <email>bkerney@bkerney.opb.org</email>
  </committer>
</commit>
