[uf-new] Comment Proposal

Martin McEvoy martin at weborganics.co.uk
Thu Nov 13 14:14:37 PST 2008


Hello all...

As per the recent discussions on a comment microformat I have updated 
the comment-brainstorming page with an updated schema

Proposal:

    * hentry (a container element for a comment entry)

    * author (author)100%
          o an Entry Author element MUST be encoded in an hCard
               1. http://microformats.org/wiki/hatom#Entry_Author

    * url (author-url) 92%
          o Use the url value of a hcard

    * entry-content (comment) 100%
          o The "logical Entry Content" of an Entry is the 
concatenation, in order of appearance, of all the Entry Contents within 
the Entry
               1. http://microformats.org/wiki/hatom#Entry_Content

    * updated (date) 100%
          o use the datetime-design-pattern to encode the updated datetime
               1. http://microformats.org/wiki/hatom#Entry_Updated

    * section (comment-link) 40%
          o section: to indicate that the href attribute of a link is a 
section of the current page.
               1. http://www.w3.org/TR/html4/types.html#h-6.12
               2. A parser could parse this link type as either 
(depending on context and usage):
                      + The Atom related 
(http://www.atomenabled.org/developers/syndication/index.php#link) link 
type(for atom conformity)
                      + The  in-reply-to Atom Threading Extension 
(http://tools.ietf.org/html/rfc4685)
               3. The section link type is used to determine the 
difference between a comment and an article or blog post


Example:

<div class="hentry" id="comment-001">
   <address class="author vcard">
       <span class="entry-title"><a class="url fn" 
href="http://contributor.com/blog/">Author</a> said</span>
   </address>
   about <abbr class="updated" title="2008-09-01T14:40:45+01:00">72 days 
ago</abbr>,
   <div class="entry-content">
      <p>Hey Great Post</p>
    </div>
   <a rel="section" href="#comment-001">link to this</a>
</div>


Thanks

http://microformats.org/wiki/comment-brainstorming

-- 
Martin McEvoy

http://weborganics.co.uk/



More information about the microformats-new mailing list