[whatwg] li start tag algorithm clarification.

Ian Hickson ian at hixie.ch
Mon Dec 1 19:08:53 PST 2008


On Mon, 10 Nov 2008, Tommy Thorsen wrote:
>
> In the handler for 'A start tag whose tag name is "li"' in "in body", 
> the algorithm says "jump to the last step" in a couple of places. Is 
> "the last step" step 5, or is it the final unnumbered step which says, 
> "Finally, insert an HTML element for the token"?
> 
> I suggest, to make this clearer, that we give the final step a number 
> (the number 6 comes to mind) and change "jump to the last step" to "jump 
> to step 5/6".
> 
> This also goes for the next section (the one called 'A start tag whose 
> name is one of: "dd", "dt"').

I don't like using numbers because the numbers change and I forget to 
update them and this causes all kinds of really hard to debug bugs.

I've annotated the last step as being "the last step" so that it's clear. 
Let me know if it's still ambiguous.

-- 
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