<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/fixtures/redflavor.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -47,6 +47,30 @@ class HEntry &lt; Microformat
   &lt;/entry&gt;
     atom_entity
   end
+
+  def missing_author?
+    @author.nil?
+  end
+
+  def add_in_parent_hcard
+    @properties &lt;&lt; 'author'
+    @author = self.class.find_in_parent_hcard
+  end
+
+  class &lt;&lt; self
+    def build_class(microformat)
+      hentry = super(microformat)
+      hentry.add_in_parent_hcard if hentry.missing_author?
+      hentry
+    end
+
+    # Per spec: if the entry author is missing find the nearest in
+    # parent &lt;address&gt; element(s) with class name author
+    def find_in_parent_hcard
+      @in_parent_hcard ||= prepare_value(HCard.find(
+        :text =&gt; (@doc/&quot;//.hentry/../address.vcard&quot;).to_s))
+    end
+  end
 end
 
 class Array</diff>
      <filename>lib/mofo/hentry.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,13 @@ context &quot;A parsed hEntry object&quot; do
     $hentry.author.fn.should.equal &quot;Chris&quot;
   end
 
+  specify &quot;should have an author when there are no entry author but a nearest in parent hcard&quot; do
+    with_parent = HEntry.find(:first =&gt; fixture(:redflavor),
+                             :base =&gt; 'http://journal.redflavor.com')
+    with_parent.author.should.be.an.instance_of HCard
+    with_parent.author.fn.should.equal &quot;Eivind Uggedal&quot;
+  end
+
   specify &quot;should have content&quot; do
     $hentry.entry_content.should.be.an.instance_of String
   end</diff>
      <filename>test/hatom_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>53550ced5f4630e035788c27a92a873552e76f3b</id>
    </parent>
  </parents>
  <author>
    <name>Eivind Uggedal</name>
    <email>eu@redflavor.com</email>
  </author>
  <url>http://github.com/uggedal/mofo/commit/c25faa0e5f7fa7dbf5cc93fde9c20ec888ab0fb5</url>
  <id>c25faa0e5f7fa7dbf5cc93fde9c20ec888ab0fb5</id>
  <committed-date>2008-01-27T04:36:23-08:00</committed-date>
  <authored-date>2008-01-27T04:36:23-08:00</authored-date>
  <message>use in parent hcard for hentry without author</message>
  <tree>34d9325e5c537b3ea4cb54636d251d905aff30d4</tree>
  <committer>
    <name>Eivind Uggedal</name>
    <email>eu@redflavor.com</email>
  </committer>
</commit>
