<?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>20829</bug_id>
          
          <creation_ts>2013-01-30 21:53:03 +0000</creation_ts>
          <short_desc>[Templates]: The foster agency algorithm should be prevented from pulling nodes out of the template content</short_desc>
          <delta_ts>2013-01-30 21:57: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>
          
          <blocked>15476</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Rafael Weinstein">rafaelw</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>adamk</cc>
    
    <cc>annevk</cc>
    
    <cc>dglazkov</cc>
    
    <cc>hsivonen</cc>
    
    <cc>travil</cc>
    
    <cc>tross</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82361</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-30 21:53:03 +0000</bug_when>
    <thetext>e.g.

&lt;body&gt;&lt;template&gt;&lt;i&gt;&lt;menu&gt;&lt;/i&gt;

The problem here is that, as written, the algorithm will remove the &lt;menu&gt; append it to a newly created &lt;i&gt; and append &lt;i&gt; to the &quot;next&quot; item in the stack of open elements (which is &lt;template&gt;).

The solution is to modify the rule to append to the template&apos;s content, when it currently would have appended to the template itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82362</commentid>
    <comment_count>1</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-30 21:57:44 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/50ce1f368c1a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>