Re: [whatwg] HTML5 is broken: <menuitem> causes infinite loop

On Thu, 9 May 2013, Michael Day wrote:
>
> Hilarious spec bug of the week: HTML5 requires implementations to loop
> indefinitely if they see a <menuitem> start tag.
> 
> 12.2.5.4.7 "in body" insertion mode
>  => see a <menuitem> start tag, process using rules for "in head"
> 
> 12.2.5.4.4 "in head" insertion mode
>  => see <menuitem>, act as if </head> and reprocess
> 
> 12.2.5.4.6 "after head" insertion mode
>  => see <menuitem>, act as if <body> and reprocess
> 
> ...and we're back at "in body" insertion mode, and will continue to bounce
> around with the <menuitem> start tag token making absolutely no progress
> whatsoever.

This was an error that resulted when I renamed <command> (which was 
allowed in <head>) to <menuitem> (which is not). I apparently did a poor 
job of correcting the parsing. Fixed (it's now only mentioned "in body").

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

Received on Monday, 1 July 2013 23:18:46 UTC