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 19966 - [Templates]: Can the rule for </template> for Template Contents Mode just refer to In Head
Summary: [Templates]: Can the rule for </template> for Template Contents Mode just ref...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 15476
  Show dependency treegraph
 
Reported: 2012-11-15 01:36 UTC by Rafael Weinstein
Modified: 2013-01-04 02:24 UTC (History)
5 users (show)

See Also:


Attachments

Description Rafael Weinstein 2012-11-15 01:36:10 UTC
There's some extra work, but I think it will all be noops. Is it worth it, just for simplicity?
Comment 1 Rafael Weinstein 2013-01-03 17:56:28 UTC
Ok, this isn't just speculative anymore. An example of a case in which doing the full work of In Head is:

#data
<body><template><template><b><template></template></template>text</template>
#errors
#document
|<html>
|   <head>
|   <body>
|     <template>
|       #document-fragment
|         <template>
|           #document-fragment
|             <b>
|               <template>
|                 #document-fragment
|         "text"

In this case, the failure to clear the list of active formatting elements results in the <b> still being on the stack even when its enclosing <template> end tag has been processed.
Comment 2 Rafael Weinstein 2013-01-04 02:24:34 UTC
http://dvcs.w3.org/hg/webcomponents/rev/534ef8dd54e8