<?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>23032</bug_id>
          
          <creation_ts>2013-08-21 11:35:09 +0000</creation_ts>
          <short_desc>Hoist &lt;template&gt; to head when found between &lt;/head&gt; and &lt;body&gt; for consistency with &lt;script&gt;</short_desc>
          <delta_ts>2013-10-17 23:31:38 +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>HTML5 spec</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/#the-after-head-insertion-mode</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>23002</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>contributor</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rafaelw</cc>
    
    <cc>travil</cc>
    
    <cc>tross</cc>
    
    <cc>zcorpan</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>92409</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-08-21 11:35:09 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #23002 +++

Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html
Multipage: http://www.whatwg.org/C#the-after-head-insertion-mode
Complete: http://www.whatwg.org/c#the-after-head-insertion-mode
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Hoist &lt;template&gt; to head?

Posted from: 90.230.218.37
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.49 Safari/537.36 OPR/16.0.1196.45 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92421</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-08-21 14:12:53 +0000</bug_when>
    <thetext>Why?  We can&apos;t really expand the set of in-&lt;head&gt; elements anyway, and with MDV, there are uses for inline templates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92425</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-08-21 15:11:42 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Why?

See the comments in bug 23002.

&gt; We can&apos;t really expand the set of in-&lt;head&gt; elements anyway, and with
&gt; MDV, there are uses for inline templates.

&lt;template&gt; is already allowed in &lt;head&gt;. That&apos;s not what this bug is about.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92470</commentid>
    <comment_count>3</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-08-22 19:01:49 +0000</bug_when>
    <thetext>&lt;template&gt; is allowed in head and body.

This bug is asking the question when it is placed after &lt;/head&gt; but before &lt;body&gt;, which one does it get put into. Currently it&apos;s &lt;body&gt;, and Simon is saying it should be &lt;head&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92479</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-08-22 21:04:26 +0000</bug_when>
    <thetext>Tony and I chatted--initially we were alarmed by the title, but after reading the details this makes sense. I like the consistency that it then maintains between the other head-able elements. So, I&apos;m in favor of making the change.

Thanks for looping us in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92481</commentid>
    <comment_count>5</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-08-22 21:09:38 +0000</bug_when>
    <thetext>The fact that inline templates are intended to be used by MDV to stamp out DOM from a data source mans that hoisting is definitely not what we want to do.

&lt;template&gt; isn&apos;t intended to be just a data-source element - it&apos;ll actually *do* something where it&apos;s placed if you put the right attributes on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92493</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-08-23 08:59:32 +0000</bug_when>
    <thetext>Clarifying the title.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94916</commentid>
    <comment_count>7</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2013-10-17 23:31:38 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:


   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: Ported change from WHATWG spec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>