訂正と段落
4.7.4 訂正と段落
このセクションは非規定です。
ins 要素と del 要素は段落化に影響しないため、段落が暗黙(明示的に p 要素が使われていない)の場合においては、ins 要素と del 要素は、段落全体、もしくは、非フレージング・コンテンツ要素でもう一つの段落となる部分のどちらの範囲にも及ぶことが可能です。
例えば:
<section> <ins> <p> This is a paragraph that was inserted. </p> This is another paragraph whose first sentence was inserted at the same time as the paragraph above. </ins> This is a second sentence, which was there all along. </section>
ins 要素や del 要素は、p 要素のいくつかの段落を覆うだけで、1つ目の段落の終わり、2つ目の段落全体、そして3つ目の段落のはじめに至るまでカバーすることができます(これはとても分かりにく、実践を考慮していません。):
<section> This is the first paragraph. <ins>This sentence was inserted. <p>This second paragraph was inserted.</p> This sentence was inserted too.</ins> This is the third paragraph in this example. <!-- (don't do this) --> </section>
しかし、暗黙の段落が定義される方法に起因して、段落の終わりとその直後の段落のはじめを、同じ ins 要素や del 要素を使ってマークアップすることは不可能です。その代わり、1つ(または2つ)の p 要素と2つの ins または del 要素を使う必要があります:
例えば:
<section> <p>This is the first paragraph. <del>This sentence was deleted.</del></p> <p><del>This sentence was deleted too.</del> That sentence needed a separate <del> element.</p> </section>
いくぶん上記の説明で混乱したかもしれませんが、ウェブ制作者は、すべての段落を p 要素を使ってマークアップすることが強く推奨されます。そして、ins 要素や del 要素が暗黙の段落をまたぐことがないようにしなくてはいけません。
※ 原文:http://www.w3.org/TR/2011/WD-html5-20110525/edits.html#edits-and-paragraphs