- From: poot <cvsmail@w3.org>
- Date: Tue, 11 Jan 2011 21:44:26 -0500
- To: public-html-diffs@w3.org
hixie: better example (whatwg r5731) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4593&r2=1.4594&f=h http://html5.org/tools/web-apps-tracker?from=5730&to=5731 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4593 retrieving revision 1.4594 diff -u -d -r1.4593 -r1.4594 --- Overview.html 31 Dec 2010 04:04:16 -0000 1.4593 +++ Overview.html 31 Dec 2010 07:08:00 -0000 1.4594 @@ -1875,13 +1875,19 @@ <div class="example"> - <p>For example, the following markup results in poor performance - when hitting the highlighted end tag, since all the open elements - are examined first to see if they match the close tag:</p> + <p>For example, the following markup results in poor performance, + since all the unclosed <code><a href="#the-i-element">i</a></code> elements have to be + reconstructed in each paragraph, resulting in progressively more + elements in each paragraph:</p> - <pre class="bad"><p><em><span><span><span>...<span><span><span><strong></em></strong></pre> + <pre class="bad"><p><i>He dreamt. +<p><i>He dreamt that he ate breakfast. +<p><i>Then lunch. +<p><i>And finally dinner.</pre> - </div> + <p>The resulting DOM for this fragment would be:</p> + + <ul class="domTree"><li class="t1"><code><a href="#the-p-element">p</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t3"><code>#text</code>: <span title="">He dreamt.</span></ul></ul><li class="t1"><code><a href="#the-p-element">p</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t3"><code>#text</code>: <span title="">He dreamt that he ate breakfast.</span></ul></ul></ul><li class="t1"><code><a href="#the-p-element">p</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t3"><code>#text</code>: <span title="">Then lunch.</span></ul></ul></ul></ul><li class="t1"><code><a href="#the-p-element">p</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t1"><code><a href="#the-i-element"i</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t1"><code><a href="#the-i-element">i</a></code><ul><li class="t3"><code>#text</code>: <span title="">And finally dinner.</span></ul></ul></ul></ul></ul></ul></div> </dd>
Received on Wednesday, 12 January 2011 02:44:27 UTC