[html5] r1781 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 17 15:42:13 PDT 2008


Author: ianh
Date: 2008-06-17 15:42:12 -0700 (Tue, 17 Jun 2008)
New Revision: 1781

Modified:
   index
   source
Log:
[t] (0) Fix an error in the outlining algorithm that broke outlines for documents like <body><h1/><h2/><h3/><h2/>. (credit: jg, gs)

Modified: index
===================================================================
--- index	2008-06-17 09:20:06 UTC (rev 1780)
+++ index	2008-06-17 22:42:12 UTC (rev 1781)
@@ -9550,8 +9550,9 @@
        section</var>.</p>
 
       <p>Otherwise, if the element being entered has a <a
-       href="#rank">rank</a> equal to or greater than the heading of the <var
-       title="">current section</var>, then create a new <a href="#section0"
+       href="#rank">rank</a> equal to or greater than the heading of the last
+       section of the <a href="#outline">outline</a> of the <var
+       title="">current outlinee</var>, then create a new <a href="#section0"
        title=concept-section>section</a> and append it to the <a
        href="#outline">outline</a> of the <var title="">current
        outlinee</var> element, so that this new section is the new last
@@ -9594,6 +9595,10 @@
       <p>Push the element being entered onto the stack. (This causes the
        algorithm to skip any descendants of the element.)</p>
 
+      <p class=note>Recall that <code><a href="#h1">h1</a></code> has the
+       <em>highest</em> rank, and <code><a href="#h6">h6</a></code> has the
+       lowest rank.</p>
+
      <dt>Otherwise
 
      <dd>

Modified: source
===================================================================
--- source	2008-06-17 09:20:06 UTC (rev 1780)
+++ source	2008-06-17 22:42:12 UTC (rev 1781)
@@ -7774,7 +7774,8 @@
 
       <p>Otherwise, if the element being entered has a
       <span>rank</span> equal to or greater than the heading of the
-      <var title="">current section</var>, then create a new <span
+      last section of the <span>outline</span> of the <var
+      title="">current outlinee</var>, then create a new <span
       title="concept-section">section</span> and append it to the
       <span>outline</span> of the <var title="">current outlinee</var>
       element, so that this new section is the new last section of
@@ -7814,6 +7815,10 @@
       <p>Push the element being entered onto the stack. (This causes
       the algorithm to skip any descendants of the element.)</p>
 
+      <p class="note">Recall that <code>h1</code> has the
+      <em>highest</em> rank, and <code>h6</code> has the lowest
+      rank.</p>
+
      </dd>
 
 




More information about the Commit-Watchers mailing list