Skip to content

Commit

Permalink
[t] (0) Fix an error in the outlining algorithm that broke outlines f…
Browse files Browse the repository at this point in the history
…or documents like <body><h1/><h2/><h3/><h2/>. (credit: jg, gs)

git-svn-id: http://svn.whatwg.org/webapps@1781 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 17, 2008
1 parent bf22705 commit 2967d58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -9550,8 +9550,9 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
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
Expand Down Expand Up @@ -9594,6 +9595,10 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
<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>
Expand Down
7 changes: 6 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -7774,7 +7774,8 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>

<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
Expand Down Expand Up @@ -7814,6 +7815,10 @@ isn't his only passion. He also enjoys other pleasures.&lt;/p>
<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>


Expand Down

0 comments on commit 2967d58

Please sign in to comment.