This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25281 - Incorrect outline in last sample outline
Summary: Incorrect outline in last sample outline
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-06 22:06 UTC by Jason Kiss
Modified: 2014-04-18 01:52 UTC (History)
4 users (show)

See Also:


Attachments

Description Jason Kiss 2014-04-06 22:06:26 UTC
Shouldn't the outline for the last example in 4.3.10.2 Sample outlines be as follows?

<ol class="brief">
    <li> Ray's blog
        <ol class="brief">
            <li> <i>Untitled article</i>
                <ol class="brief">
                    <li><i>Untitled navigation section</i> </li>
                    <li> We're adopting a child!</li>
                </ol>
            </li>
        </ol>
    </li>
</ol>

In other words, aren't the <nav> and the H2's implied section at the same level within the <article>?
Comment 1 steve faulkner 2014-04-17 09:15:15 UTC
Hi Jason, no, but it is a little confusing, its easier to understand if you add headings to reflect the nesting structure. the <nav> is a subsection of the article

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Ray's blog</h1>

<main>
 <article>
<header>
<h2>article heading</h2>
  <nav>
<h3>nav heading</h3>
   <a href="?t=-1d">Yesterday</a>;
   <a href="?t=-7d">Last week</a>;
   <a href="?t=-1m">Last month</a>
  </nav> 
</header>
  <h2>We're adopting a child!</h2>

  <p>As of today, Janine and I have signed the papers to become
  the proud parents of baby Diane! We've been looking forward to
  this day for weeks.</p>
</article> 
</main>
</body>
</html>

resulting outline:

    Ray's blog
        article heading
            nav heading
        We're adopting a child!
Comment 2 Jason Kiss 2014-04-18 01:52:12 UTC
Thanks, Steve.

I get that the <nav> is a subsection of the <article>, but was confused about the second <h2>. Working with your modified example, I guess the second <h2>, being of equal rank with the first <h2>, starts a new implied section in the outline. That implied section reflects content that is nested within the <article> in the DOM tree, but it is not part of the outline section established by the <article> and its first <h2>. Is that right?

Anyway, no need to waste time on this for my sake. I've happily resigned myself to not fully understanding the algorithm, which is fine as long it remains unimplemented.