<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22025</bug_id>
          
          <creation_ts>2013-05-14 04:19:50 +0000</creation_ts>
          <short_desc>For &lt;menuitem&gt;, &quot;in body&quot; mode redirects to &quot;in head&quot;, which will cause an infinite loop.</short_desc>
          <delta_ts>2013-05-28 22:57:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inbody</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>geoff</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mikeday</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87625</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-05-14 04:19:50 +0000</bug_when>
    <thetext>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 &lt;menuitem&gt;, &quot;in body&quot; mode redirects to &quot;in head&quot;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87939</commentid>
    <comment_count>1</comment_count>
    <who name="Geoff Richards">geoff</who>
    <bug_when>2013-05-20 23:55:27 +0000</bug_when>
    <thetext>I&apos;ve got the same problem.  After bringing my parser up to date with the
relevant changes, I got an infinite loop parsing a &lt;menuitem&gt; start tag.

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

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

    </bug>

</bugzilla>