[whatwg] Creating An Outline oddity

Ian Hickson ian at hixie.ch
Sat Jun 14 20:06:54 PDT 2008


On Sun, 15 Jun 2008, Geoffrey Sneddon wrote:
>
> Having implemented the creating an outline algorithm (see 
> <http://pastebin.ca/1048202>), I'm getting some odd results (the only 
> TODO won't affect HTML 4.01 documents such as the following issues).
> 
> Using `<h1>Foo<h2>Bar<h2>Lol`, and looking at the final "current 
> section" (this is the root sectioning element, body), it seems I 
> correctly get the heading of it ("Foo"), but I only get one subsection: 
> "Bar". As far as I can see, my implementation follows what the spec 
> says, so it looks as if this is an issue with the spec.
> 
> With HTML 5, the current_outlinee at the end is a td element, when it 
> should be the body element. That really is rather odd.

I don't understand the markup you mean. Could you draw the DOM or provide 
unambiguous markup for what you're describing? (I don't understand how 
"Foo" is a heading but "Bar" is a section in your markup.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list