在HTML5中处理博客上的线程评论时,你会期望评论的线程是嵌套<article>的吗?或者您是否会认为嵌套的评论只是<article>博客文章范围内的另一个,并且线程是显示问题?
例A:
<section>
<article>
...blog post...
<section id="comments">
<article id="comment_1">...comment 1...</article>
<article id="comment_2">
...comment 2...
<article id="comment_3">...comment 3 in response to comment 2...</article>
<article id="comment_4">
...comment 4 in response to comment 2...
<article id="comment_4">...comment 5 in response to comment 4...</article>
</article>
</article>
<article id="comment_6">...comment 6...</article>
</section>
</article>
</section>
Run Code Online (Sandbox Code Playgroud)
例B(理论上的rel ="parent"):
<section>
<article>
...blog post...
<section id="comments">
<article id="comment_1">...comment 1...</article>
<article id="comment_2">...comment 2...</article>
<article id="comment_3" rel="comment_2" class="indent-1">...comment 3 in response to comment 2...</article>
<article id="comment_4" rel="comment_2" class="indent-1">...comment 4 in response to comment 2...</article>
<article id="comment_5" rel="comment_4" class="indent-2">...comment 5 in response to comment 4...</article>
<article id="comment_6">...comment 6...</article>
</section>
</article>
</section>
Run Code Online (Sandbox Code Playgroud)
编辑:
为了进一步澄清,感觉每个评论被列为规范建议中的一篇文章是因为它是主要文章的一个小节中的一篇文章,因为它的相关性.线程评论仍然是该讨论的延伸.
小智 2
虽然我想同意 Closure Cowboy 的观点,因为对我来说,给定文章的所有评论都是在原始文章的上下文中,即使可能出现一些切线的线程。如果没有原文,评论就不重要了。然而,一位朋友就二级评论内容如何超越线索评论的重要性给出了很好的论据:
Original Article: "post some awesome photoshops of my dog!"
Comment 1: (link/image of awesome photoshop response that goes crazy viral)
Comment 2: re comment 1: oh wow, that is amazing photoshop skills!
Comment 3: re comment 1: Fantastic! How do you do that?
Comment 4: re comment 3: See this tutorial I found on that effect.
Run Code Online (Sandbox Code Playgroud)
到那时,我们就不再真正讨论原始文章了。虽然存在关系,但通过嵌套元素从字面上表示语义关系似乎更重要。所以我必须选择“B”。
| 归档时间: |
|
| 查看次数: |
1411 次 |
| 最近记录: |