【发布时间】:2023-04-08 09:45:02
【问题描述】:
我在 cmets 上有以下丰富的 sn-p 代码:
<ul itemscope itemtype="http://schema.org/UserComments">
<li id="comment-1" class="comment">
<span itemprop="name" class="author">Author 1</span>
<p itemprop="commentText">Bla Bla Bla</p>
<time itemprop="commentTime" content="2012-07-29" datetime="2012-07-29T05:55+00:00" title="Jul 29, 2012 5:55">2 days ago</time>
</li>
<li id="comment-2" class="comment">
<span itemprop="name" class="author">Author 2</span>
<p itemprop="commentText">yada yada yada</p>
<time itemprop="commentTime" content="2012-07-30" datetime="2012-07-30T04:44+00:00" title="Jul 30, 2012 4:44">yesterday</time>
</li>
</ul>
根据schema.org/UserComments,这是正确的。但是,Google's Rich Snippets Testing Tool 发出警告:
警告:缺少必填字段“dtstart”。
dtstart 甚至不是 UserComments 事件的属性。我应该忽略这个警告吗(谷歌的工具是测试版)?还是我错过了什么?
【问题讨论】:
标签: html microdata schema.org