This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22025 - For <menuitem>, "in body" mode redirects to "in head", which will cause an infinite loop.
Summary: For <menuitem>, "in body" mode redirects to "in head", which will cause an in...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 blocker
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-14 04:19 UTC by contributor
Modified: 2013-05-28 22:57 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2013-05-14 04:19:50 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html
Multipage: http://www.whatwg.org/C#parsing-main-inbody
Complete: http://www.whatwg.org/c#parsing-main-inbody
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
For <menuitem>, "in body" mode redirects to "in head", which will cause an
infinite loop.

Posted from: 110.142.158.46
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0
Comment 1 Geoff Richards 2013-05-20 23:55:27 UTC
I've got the same problem.  After bringing my parser up to date with the
relevant changes, I got an infinite loop parsing a <menuitem> start tag.

The spec change that caused this is in http://html5.org/r/7640

There are two places where the old <command> element was listed as a
start tag to match in a state ("in head", and "in body").  The change
renamed it to <menuitem> in the latter, but just removed it from the
first.  (There was a third list which is commented out.)  I think
we need <menuitem> added to that list in the "in head" insertion mode.
Comment 2 Ian 'Hixie' Hickson 2013-05-28 22:55:55 UTC
Woops. I wasn't paying enough attention there. Fixed, I think.
Comment 3 contributor 2013-05-28 22:57:20 UTC
Checked in as WHATWG revision r7871.
Check-in comment: <menuitem> parsing bug
http://html5.org/tools/web-apps-tracker?from=7870&to=7871