W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] Re: <section> and headings

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 22 Nov 2004 11:52:35 -0500
Message-ID: <41A21953.1010604@inkedblade.net>
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
Received on Monday, 22 November 2004 08:52:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:20 UTC