<?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>10115</bug_id>
          
          <creation_ts>2010-07-08 22:23:30 +0000</creation_ts>
          <short_desc>EOF handling in foreign content needs to change the insertion mode</short_desc>
          <delta_ts>2010-10-22 10:38:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9831</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#scriptForeignEndTag</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>eric</cc>
    
    <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>w3c</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36700</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-07-08 22:23:30 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#scriptForeignEndTag

Comment:
EOF handling in foreign content needs to change the insertion mode

Posted from: 67.169.69.72</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36701</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel">eric</who>
    <bug_when>2010-07-08 22:25:04 +0000</bug_when>
    <thetext>&quot;in foreign content&quot;:

An end-of-file token
Parse error.

Pop elements from the stack of open elements until either a math element or an svg element has been popped from the stack, and reprocess the token.


I believe that will recurse infinitely, since it never changes the insertion mode.  So it&apos;s just gonna end up attempting to pop forever.  (In WebKit it would eventually hit an ASSERT since our open elements data structure will ASSERT when it runs out of things to pop.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36702</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel">eric</who>
    <bug_when>2010-07-08 22:29:52 +0000</bug_when>
    <thetext>This is what I&apos;ve done for now:

    case InForeignContentMode:
        parseError(token);
        // FIXME: This would infinite loop otherwise, for now, violate the spec.
        // http://www.w3.org/Bugs/Public/show_bug.cgi?id=10115
        HTMLElementStack::ElementRecord* record = m_tree.openElements()-&gt;topRecord();
        for (; record; record = record-&gt;next())
            if (record-&gt;element()-&gt;namespaceURI() == xhtmlNamespaceURI)
                break;
            m_tree-&gt;openElements()-&gt;pop();
        }
        processEndOfFile(token);
        break;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36710</commentid>
    <comment_count>3</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-07-09 05:52:01 +0000</bug_when>
    <thetext>See also bug 9831.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36717</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel">eric</who>
    <bug_when>2010-07-09 06:40:48 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 9831 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>