我在Google's Structured Data Testing Tool上验证了以下Comment
Schema.org结构化数据,但似乎无法正确识别Comment
structure:
这是我的HTML(针对单个评论)
<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>
我的结构出了什么问题?它应该识别Comment
结构。它似乎只识别Person
结构化数据。
答案 0 :(得分:3)
您使用的是itemscope="http://schema.org/Comment"
,但应该是:
itemscope itemtype="http://schema.org/Comment"