W3C home > Mailing lists > Public > public-html-diffs@w3.org > January 2011

hixie: better example (whatwg r5731)

From: poot <cvsmail@w3.org>
Date: Tue, 11 Jan 2011 21:44:26 -0500
To: public-html-diffs@w3.org
Message-Id: <E1PcqhF-0000I2-Tb@jay.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">&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 Wednesday, 12 January 2011 02:44:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 12 January 2011 03:37:33 GMT