Bugzilla – Bug 252
Fix an error in the outlining algorithm that broke outlines for documents like <body><h1/><h2/><h3/><h2/>. (credit: jg, gs)
Last modified: 2008-06-18 15:28:07 CEST
Index: source =================================================================== --- source (revision 1780) +++ source (revision 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>