[whatwg] Outline Depth Does Not Correspond to Sectioning Depth?

Tab Atkins Jr. jackalmage at gmail.com
Mon Mar 26 17:30:21 PDT 2012


On Mon, Mar 26, 2012 at 5:20 PM, Hugh Guiney <hugh.guiney at gmail.com> wrote:
> On Mon, Mar 26, 2012 at 8:08 PM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
>>
>> What text are you looking at that implies the outline depths of the
>> headings in the first snippet are all 1?
>
> I could not find anything, but the person who wrote that JavaScript
> implementation seemed pretty convinced that this was the case
> (https://github.com/hoyois/html5outliner/issues/1#issuecomment-4653452).
> I figured that having written an implementation he had studied the
> relevant sections in considerably more depth than I had and
> second-guessed myself. Looks like it is in fact a bug in the program
> and not the spec. Thanks for clearing that up!

It's possible they'd gotten confused by the fact that the first
heading in a section, no matter what rank it is, is more-or-less
equivalent to a <h1> as far as the outlining algorithm is concerned.

~TJ



More information about the whatwg mailing list