- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 31 Dec 2010 07:08:04 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv9941
Modified Files:
Overview.html
Log Message:
better example (whatwg r5731)
Index: Overview.html
===================================================================
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 Friday, 31 December 2010 07:08:06 UTC