<?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>21293</bug_id>
          
          <creation_ts>2013-03-14 23:18:54 +0000</creation_ts>
          <short_desc>[Templates]: EOF processing fails if a &lt;template&gt; in a non-html namespace is on the stack of open elements</short_desc>
          <delta_ts>2013-07-01 22:35:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>21292</dependson>
          <blocked>15476</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Rafael Weinstein">rafaelw</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>adamk</cc>
    
    <cc>dglazkov</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>tross</cc>
    
    <cc>wchen</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84451</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-03-14 23:18:54 +0000</bug_when>
    <thetext>E.g. &lt;template&gt;&lt;svg&gt;&lt;/template&gt;

This is apropos of the HTML bug I just opened: 

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21292

What happens here is:

-EOF is hit
-The stack of template insertion modes is non-empty, so we generated a fake &lt;/template&gt;
-The &lt;/template&gt; handling pops past the first &quot;template&quot; tag on the stack, which is &lt;svg template&gt;
-It resets the insertion mode, which hits the (html) &lt;template&gt; tries to find the current one from the stack of template insertion modes...which is now empty.
=&gt;crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90010</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-28 22:40:51 +0000</bug_when>
    <thetext>I assume this is really talking about this case:

   &lt;template&gt;&lt;svg&gt;&lt;template&gt;

(That is, the second tag is an open tag, not a close tag.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90013</commentid>
    <comment_count>2</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-06-28 22:44:45 +0000</bug_when>
    <thetext>Yes. Correct. Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90093</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-01 22:27:39 +0000</bug_when>
    <thetext>This is fixed now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90094</commentid>
    <comment_count>4</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-07-01 22:35:44 +0000</bug_when>
    <thetext>Thanks, Hixie.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>