[html5] r1259 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Feb 26 23:19:19 PST 2008


Author: ianh
Date: 2008-02-26 23:19:16 -0800 (Tue, 26 Feb 2008)
New Revision: 1259

Modified:
   index
   source
Log:
[t] (0) Oops, sectioning root elements don't reset the section level.

Modified: index
===================================================================
--- index	2008-02-27 02:53:09 UTC (rev 1258)
+++ index	2008-02-27 07:19:16 UTC (rev 1259)
@@ -8910,8 +8910,11 @@
       element
 
      <dd>
-      <p>Pop that element from the stack.
+      <p class=note>The element being exited is a <a href="#heading0">heading
+       content</a> element.</p>
 
+      <p>Pop that element from the stack.</p>
+
      <dt>If the top of the stack is a <a href="#heading0">heading content</a>
       element
 
@@ -8935,9 +8938,8 @@
        outlinee</var>, initialised with just the new <var title="">current
        section</var> as the only section in the outline.</p>
 
-     <dt>When exiting a <a href="#sectioning0">sectioning content</a> element
-      or a <a href="#sectioning1">sectioning root</a> element, if the stack
-      is not empty
+     <dt>When exiting a <a href="#sectioning0">sectioning content</a>
+      element, if the stack is not empty
 
      <dd>
       <p>Pop the top element from the stack, and let the <var
@@ -8946,17 +8948,43 @@
       <p>Let <var title="">current section</var> be the last section in the
        outline of the <var title="">current outlinee</var> element.</p>
 
-      <p>If the element being exited is a <a href="#sectioning0">sectioning
-       content</a> element, then insert its outline at the end of the <var
-       title="">current section</var>. (This does not change which section is
-       the last section in the outline.)</p>
+      <p>Insert its outline at the end of the <var title="">current
+       section</var>. (This does not change which section is the last section
+       in the outline.)</p>
 
+     <dt>When exiting a <a href="#sectioning1">sectioning root</a> element,
+      if the stack is not empty
+
+     <dd>
+      <p>Run these steps:</p>
+
+      <ol>
+       <li>
+        <p>Pop the top element from the stack, and let the <var
+         title="">current outlinee</var> be that element.
+
+       <li>
+        <p>Let <var title="">current section</var> be the last section in the
+         outline of the <var title="">current outlinee</var> element.
+
+       <li>
+        <p><i>Loop:</i> If <var title="">current section</var> has no child
+         sections, stop these steps.
+
+       <li>
+        <p>Let <var title="">current section</var> be the last child section
+         of the current <var title="">current section</var>.
+
+       <li>
+        <p>Go back to the substep labelled <i>Loop</i>.
+      </ol>
+
      <dt>When exiting a <a href="#sectioning0">sectioning content</a> element
       or a <a href="#sectioning1">sectioning root</a> element
 
      <dd>
       <p class=note>The <var title="">current outlinee</var> is the element
-       being exitted.</p>
+       being exited.</p>
 
       <p>Let <var title="">current section</var> be the first section in the
        outline of the <var title="">current outlinee</var> element.</p>

Modified: source
===================================================================
--- source	2008-02-27 02:53:09 UTC (rev 1258)
+++ source	2008-02-27 07:19:16 UTC (rev 1259)
@@ -7237,9 +7237,16 @@
      <dt>If the top of the stack is an element, and you are exiting
      that element</dt>
 
-     <dd><p>Pop that element from the stack.</p></dd>
+     <dd>
 
+      <p class="note">The element being exited is a <span>heading
+      content</span> element.</p>
 
+      <p>Pop that element from the stack.</p>
+
+     </dd>
+
+
      <dt>If the top of the stack is a <span>heading content</span>
      element</dt>
 
@@ -7269,9 +7276,8 @@
      </dd>
 
 
-     <dt>When exiting a <span>sectioning content</span> element or a
-     <span>sectioning root</span> element, if the stack is not
-     empty</dt>
+     <dt>When exiting a <span>sectioning content</span> element, if
+     the stack is not empty</dt>
 
      <dd>
 
@@ -7282,21 +7288,50 @@
       in the outline of the <var title="">current outlinee</var>
       element.</p>
 
-      <p>If the element being exited is a <span>sectioning
-      content</span> element, then insert its outline at the end of
-      the <var title="">current section</var>. (This does not change
-      which section is the last section in the outline.)</p>
+      <p>Insert its outline at the end of the <var title="">current
+      section</var>. (This does not change which section is the last
+      section in the outline.)</p>
 
      </dd>
 
 
+     <dt>When exiting a <span>sectioning root</span> element, if the
+     stack is not empty</dt>
+
+     <dd>
+
+      <p>Run these steps:</p>
+
+      <ol>
+
+       <li><p>Pop the top element from the stack, and let the <var
+       title="">current outlinee</var> be that element.</p></li>
+
+       <li><p>Let <var title="">current section</var> be the last
+       section in the outline of the <var title="">current
+       outlinee</var> element.</p></li>
+
+       <li><p><i>Loop:</i> If <var title="">current section</var> has
+       no child sections, stop these steps.</p></li>
+
+       <li><p>Let <var title="">current section</var> be the last
+       child section of the current <var title="">current
+       section</var>.</p></li>
+
+       <li><p>Go back to the substep labelled <i>Loop</i>.</p></li>
+
+      </ol>
+
+     </dd>
+
+
      <dt>When exiting a <span>sectioning content</span> element or a
      <span>sectioning root</span> element</dt>
 
      <dd>
 
       <p class="note">The <var title="">current outlinee</var> is
-      the element being exitted.</p>
+      the element being exited.</p>
 
       <p>Let <var title="">current section</var> be the first section
       in the outline of the <var title="">current outlinee</var>




More information about the Commit-Watchers mailing list