<?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>19889</bug_id>
          
          <creation_ts>2012-11-07 13:37:38 +0000</creation_ts>
          <short_desc>[Templates]: Behavior in an XHTML document should match HTML</short_desc>
          <delta_ts>2013-01-16 23:35:16 +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="Adam Klein">adamk</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>adamk</cc>
    
    <cc>bugs</cc>
    
    <cc>dglazkov</cc>
    
    <cc>erik.arvidsson</cc>
    
    <cc>hsivonen</cc>
    
    <cc>jonas</cc>
    
    <cc>rafaelw</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>77993</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2012-11-07 13:37:38 +0000</bug_when>
    <thetext>To facilitate this, the spec should describe how to modify the tree construction algorithm when parsing XHTML. The easiest modification would be to, if the current node is an HTMLTemplateElement, push the HTMLTemplateElement.content DocumentFragment onto the stack of open elements instead of the template element itself. I&apos;ve experimented with this approach in WebKit&apos;s libxml2-based parser and it seems to work reasonably well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77994</commentid>
    <comment_count>1</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-11-07 13:42:18 +0000</bug_when>
    <thetext>But it is a very ugly approach. (Not that I know any non-ugly approaches.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81510</commentid>
    <comment_count>2</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-16 23:35:16 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/5b30972d6372</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>