Skip to content

Commit

Permalink
[t] (0) Oops, sectioning root elements don't reset the section level.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1259 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 27, 2008
1 parent 2ee6eee commit 71e46a0
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 18 deletions.
46 changes: 37 additions & 9 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -8910,7 +8910,10 @@ isn't his only passion. He also enjoys other pleasures.</p>
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
Expand All @@ -8935,9 +8938,8 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
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
Expand All @@ -8946,17 +8948,43 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
<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>
Expand Down
53 changes: 44 additions & 9 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -7237,7 +7237,14 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
<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>
Expand Down Expand Up @@ -7269,9 +7276,8 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
</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>

Expand All @@ -7282,10 +7288,39 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
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>

Expand All @@ -7296,7 +7331,7 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
<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>
Expand Down

0 comments on commit 71e46a0

Please sign in to comment.