html5/spec Overview.html,1.4593,1.4594

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">&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;...&lt;span&gt;&lt;span&gt;&lt;span&gt;<strong>&lt;/em&gt;</strong></pre>
+     <pre class="bad">&lt;p&gt;&lt;i&gt;He dreamt.
+&lt;p&gt;&lt;i&gt;He dreamt that he ate breakfast.
+&lt;p&gt;&lt;i&gt;Then lunch.
+&lt;p&gt;&lt;i&gt;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