- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 09 Sep 2009 10:12:00 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv24993 Modified Files: Overview.html Log Message: Try to reduce the confusion caused by implied paragraphs and <ins>/<del>, by making some sections non-normative, and clearly marking bad examples. (whatwg r3779) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2948 retrieving revision 1.2949 diff -u -d -r1.2948 -r1.2949 --- Overview.html 9 Sep 2009 09:55:12 -0000 1.2948 +++ Overview.html 9 Sep 2009 10:11:57 -0000 1.2949 @@ -15093,7 +15093,8 @@ <code><a href="#the-ins-element">ins</a></code> element in this example thus crosses a paragraph boundary, which is considered poor form.</p> - <pre><aside> + <pre class="bad"><aside> + <!-- don't do this --> <ins datetime="2005-03-16T00:00Z"> <p> I like fruit. </p> Apples are <em>tasty</em>. @@ -15169,7 +15170,7 @@ attribute must <a href="#reflect">reflect</a> the element's <code title="attr-mod-cite"><a href="#attr-mod-cite">cite</a></code> content attribute. The <dfn id="dom-mod-datetime" title="dom-mod-datetime"><code>dateTime</code></dfn> IDL attribute must <a href="#reflect">reflect</a> the element's <code title="">datetime</code> content attribute.</p> - </div><h4 id="edits-and-paragraphs"><span class="secno">4.7.4 </span>Edits and paragraphs</h4><p>Since the <code><a href="#the-ins-element">ins</a></code> and <code><a href="#the-del-element">del</a></code> elements do not + </div><h4 id="edits-and-paragraphs"><span class="secno">4.7.4 </span>Edits and paragraphs</h4><p><i>This section is non-normative.</i><p>Since the <code><a href="#the-ins-element">ins</a></code> and <code><a href="#the-del-element">del</a></code> elements do not affect <a href="#paragraph" title="paragraph">paragraphing</a>, it is possible, in some cases where paragraphs are <a href="#paragraph" title="paragraph">implied</a> (without explicit <code><a href="#the-p-element">p</a></code> elements), for an <code><a href="#the-ins-element">ins</a></code> or <code><a href="#the-del-element">del</a></code> element to @@ -15187,12 +15188,13 @@ can even get the end of one paragraph, a whole second paragraph, and the start of a third paragraph to be covered by the same <code><a href="#the-ins-element">ins</a></code> or <code><a href="#the-del-element">del</a></code> element (though this is very - confusing, and not considered good practice):<pre><section> + confusing, and not considered good practice):<pre class="bad"><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></pre><p>However, due to the way <a href="#paragraph" title="paragraph">implied paragraphs</a> are defined, it is not possible to mark up the end of one paragraph and the start of the very next one using the @@ -15206,9 +15208,10 @@ <p><del>This sentence was deleted too.</del> That sentence needed a separate &lt;del&gt; element.</p> </section></pre><p>Partly because of the confusion described above, authors are - strongly recommended to always mark up all paragraphs with the - <code><a href="#the-p-element">p</a></code> element, and to not have any <code><a href="#the-ins-element">ins</a></code> or - <code><a href="#the-del-element">del</a></code> elements that cross across any <a href="#paragraph" title="paragraph">implied paragraphs</a>.<h4 id="edits-and-lists"><span class="secno">4.7.5 </span>Edits and lists</h4><p>The content models of the <code><a href="#the-ol-element">ol</a></code> and <code><a href="#the-ul-element">ul</a></code> + strongly encouraged to always mark up all paragraphs with the + <code><a href="#the-p-element">p</a></code> element, instead of having <code><a href="#the-ins-element">ins</a></code> or + <code><a href="#the-del-element">del</a></code> elements that cross <a href="#paragraph" title="paragraph">implied + paragraphs</a> boundaries.<h4 id="edits-and-lists"><span class="secno">4.7.5 </span>Edits and lists</h4><p><i>This section is non-normative.</i><p>The content models of the <code><a href="#the-ol-element">ol</a></code> and <code><a href="#the-ul-element">ul</a></code> elements do not allow <code><a href="#the-ins-element">ins</a></code> and <code><a href="#the-del-element">del</a></code> elements as children. Lists always represent all their items, including items that would otherwise have been marked as deleted.<p>To indicate that an item is inserted or deleted, an
Received on Wednesday, 9 September 2009 10:12:10 UTC