W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 1 Jul 2013 23:18:23 +0000 (UTC)
To: Michael Day <mikeday@yeslogic.com>
Message-ID: <Pine.LNX.4.64.1307012317150.11139@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC