[whatwg] Re: <section> and headings

fantasai fantasai.lists at inkedblade.net
Mon Nov 22 08:52:35 PST 2004


James Graham wrote:
> fantasai wrote:
>>
>>  - The first header in a <section> is that section's top-level header
>>  - Depth of section increases:
>>      - when heading number increases
>>      - when <section> nesting increases--but this increments from
>>        the last top-level <section> header rather than the last header
> 
> Does this mean that markup like:
> <h1>Level 1,1</h1>
> <h2>Level 2,1</h2>
> <h1>Level 1,2</h1>
> <section>
> <h1>Level 2,2</h1>
> </section>
> 
> would give rise to the outline:
> 
> Level 1,1
> +-Level 2,1
> +-Level 2,2
> Level 1,2

No

> That seems counter-intuitive (the outline no longer has the headings in
> document-order). I would prefer the outline become:
> Level 1,1
> +-Level 2,1
> Level 1,1
> +-Level 2,2

It would become
Level 1,1
+-Level 2,1
Level 1,2
+-Level 2,2

(I think you mistyped the text of the second h1.)

~fantasai



More information about the whatwg mailing list