This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23032 - Hoist <template> to head when found between </head> and <body> for consistency with <script>
Summary: Hoist <template> to head when found between </head> and <body> for consistenc...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on: 23002
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-21 11:35 UTC by Simon Pieters
Modified: 2013-10-17 23:31 UTC (History)
10 users (show)

See Also:


Attachments

Description Simon Pieters 2013-08-21 11:35:09 UTC
+++ 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 <template> 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)
Comment 1 Tab Atkins Jr. 2013-08-21 14:12:53 UTC
Why?  We can't really expand the set of in-<head> elements anyway, and with MDV, there are uses for inline templates.
Comment 2 Simon Pieters 2013-08-21 15:11:42 UTC
(In reply to comment #1)
> Why?

See the comments in bug 23002.

> We can't really expand the set of in-<head> elements anyway, and with
> MDV, there are uses for inline templates.

<template> is already allowed in <head>. That's not what this bug is about.
Comment 3 Rafael Weinstein 2013-08-22 19:01:49 UTC
<template> is allowed in head and body.

This bug is asking the question when it is placed after </head> but before <body>, which one does it get put into. Currently it's <body>, and Simon is saying it should be <head>
Comment 4 Travis Leithead [MSFT] 2013-08-22 21:04:26 UTC
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'm in favor of making the change.

Thanks for looping us in.
Comment 5 Tab Atkins Jr. 2013-08-22 21:09:38 UTC
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.

<template> isn't intended to be just a data-source element - it'll actually *do* something where it's placed if you put the right attributes on it.
Comment 6 Simon Pieters 2013-08-23 08:59:32 UTC
Clarifying the title.
Comment 7 Travis Leithead [MSFT] 2013-10-17 23:31:38 UTC
EDITOR'S RESPONSE: This is an Editor'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