Schema.org Google 结构化数据测试工具无法识别评论
Schema.org Comment not recognized by Google Structured Data Testing Tool
我正确验证了 Comment
Schema.org Google's Structured Data Testing Tool but it seems not to recognize the 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
结构化数据。
您正在使用 itemscope="http://schema.org/Comment"
,但它应该是:
itemscope itemtype="http://schema.org/Comment"
我正确验证了 Comment
Schema.org Google's Structured Data Testing Tool but it seems not to recognize the 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
结构化数据。
您正在使用 itemscope="http://schema.org/Comment"
,但它应该是:
itemscope itemtype="http://schema.org/Comment"