On 15 Jun 2008, at 04:06, Ian Hickson wrote:
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.)
The first issue is identical to <http://lists.w3.org/Archives/Public/public-html/2008Mar/0032.html
>, which I bullied (sorry, asked) you in to fixing yesterday and is
now fixed. The second issue was an implementation bug.
--
Geoffrey Sneddon
<http://gsnedders.com/>