1
votes

I validated the followin Comment Schema.org structured data on Google's Structured Data Testing Tool but it seems not to recognize the Comment structure correctly:

Here's my HTML (for a single comment)

<div class="comment-wrapper zoomIn animated" data-comment-id="40" data-level=
"0" data-user-id="28" id="comment-40" itemprop="comment" itemscope=
"http://schema.org/Comment">
    <div class="comment-inner">
        <div class="comment-title">
            <span class="submitted-by"><span itemprop="creator" itemscope
            itemtype="http://schema.org/Person"><span itemprop=
            "name">Jane</span></span><span class="score" title=
            "Score"><span></span>0</span> •</span>
            <meta content="2015-12-09T06:28:59Z"><time class="date-submitted"
            datetime="2015-12-09T06:28:59Z">a day ago</time> 
        </div>
        <div class="comment-content">
            <article class="comment-body">
                <p itemprop='text'>fgdfg</p>
            </article>
        </div>
        <div class="comment-options">
            <span class="upvote-num" itemprop="upvoteCount">1</span>
        </div>
        <div class="notification"></div>
    </div>
</div>

What is wrong with my structure? It should recognize the Comment structure. It seem that it only recognizes the Person structured data.

1

1 Answers

3
votes

You are using itemscope="http://schema.org/Comment", but it should be:

itemscope itemtype="http://schema.org/Comment"