NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 93 - Oops, sectioning root elements don't reset the section level.
Oops, sectioning root elements don't reset the section level.
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-03 13:09 CET by Nobody
Modified: 2008-03-06 12:37 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-03-03 13:09:09 CET
Index: source
===================================================================
--- source	(revision 1258)
+++ source	(revision 1259)
@@ -7237,7 +7237,14 @@
      <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>
@@ -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,10 +7288,39 @@
       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>
 
@@ -7296,7 +7331,7 @@
      <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>
Comment 1 Henri Sivonen 2008-03-06 12:37:57 CET
No bug yet.