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.

What is the <menuitem> tag supposed to be, anyway? A test to ensure that implementers are awake, like the </sarcasm> close tag?

Cheers,

Michael

Reply via email to