-
-
Save GaryJones/0eacb2437749838155d0 to your computer and use it in GitHub Desktop.
Comments schema changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article itemscope="itemscope" itemprop="http://schema.org/BlogPosting"> | |
<!-- Blog post content, now comments list in section --> | |
<article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/UserComments"> | |
<header> | |
<p itemprop="creator" itemscope="itemscope" itemtype="http://schema.org/Person"> | |
<span itemprop="name"><a href="http://www.example.com" rel="external nofollow" itemprop="url">A.N. Other</a></span> | |
</p> | |
<p> | |
<time datetime="2014-07-01T19:13:54+00:00" itemprop="commentTime"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time> | |
</p> | |
</header> | |
<div itemprop="commentText"> | |
<p>This is an example of a comment made on a post.</p> | |
</div> | |
</article> | |
<!-- Other comments --> | |
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article itemscope="itemscope" itemprop="http://schema.org/BlogPosting"> | |
<!-- Blog post content, now comments list in section --> | |
<article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/Comment"> | |
<header> | |
<p itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"> | |
<span itemprop="name"><a href="http://www.example.com" rel="external nofollow" itemprop="url">A.N. Other</a></span> | |
</p> | |
<p> | |
<time datetime="2014-07-01T19:13:54+00:00" itemprop="datePublished"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time> | |
</p> | |
</header> | |
<div itemprop="text"> | |
<p>This is an example of a comment made on a post.</p> | |
</div> | |
</article> | |
<!-- Other comments --> | |
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 1-before.html | |
+++ 2-after.html | |
@@ -1,17 +1,17 @@ | |
<article itemscope="itemscope" itemprop="http://schema.org/BlogPosting"> | |
<!-- Blog post content, now comments list in section --> | |
- <article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/UserComments"> | |
+ <article itemprop="comment" itemscope="itemscope" itemtype="http://schema.org/Comment"> | |
<header> | |
- <p itemprop="creator" itemscope="itemscope" itemtype="http://schema.org/Person"> | |
+ <p itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"> | |
<span itemprop="name"><a href="http://www.example.com" rel="external nofollow" itemprop="url">A.N. Other</a></span> | |
</p> | |
<p> | |
- <time datetime="2014-07-01T19:13:54+00:00" itemprop="commentTime"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time> | |
+ <time datetime="2014-07-01T19:13:54+00:00" itemprop="datePublished"><a href="http://www.example.org/my-post/#comment-2" itemprop="url">July 1, 2014 at 7:13 pm</a></time> | |
</p> | |
</header> | |
- <div itemprop="commentText"> | |
+ <div itemprop="text"> | |
<p>This is an example of a comment made on a post.</p> | |
</div> | |
</article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment