[whatwg] HTML5 is broken: <menuitem> causes infinite loop
Ian Hickson
ian at hixie.ch
Mon Jul 1 16:18:23 PDT 2013
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list