[whatwg] <comment> element

Hello,

On Wed, Dec 14, 2011 at 1:37 PM, Nikhilesh Jasuja <nikhilesh at gmail.com> wrote:
> ? 6. Alternatives:
> ? ? ?1. Use <article type=comment>

I found schema.org defines "UserComments" type so we could also use it.
http://schema.org/UserComments

    <article itemscope
     itemtype="http://schema.org/BlogPosting">
      ...
      <section id="comments">
        <h1>Comments</h1>
        <article itemprop="comment" itemscope
         itemtype="http://schema.org/UserComments">
          <p itemprop="creator" ...>
          ...
          <div itemprop="commentText">
            ...
          </div>
        </article>
        ...
      </section>
    </article>

> ? ? ?2. A new attribute "in-reply-to" can be used. e.g. <article
> ? ? ?id="themainarticle">Moms rock</article><article id="comment1"
> ? ? ?in-reply-to="themainarticle">you bet</article>

Microdata defines itemref attribute so in case of using Microdata we
don't need a new attribute specifically designed for "in-reply-to"
relationship.

-- 
Masataka Yakura
<myakura.web at gmail.com>

Received on Tuesday, 13 December 2011 23:08:25 UTC