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 21293 - [Templates]: EOF processing fails if a <template> in a non-html namespace is on the stack of open elements
Summary: [Templates]: EOF processing fails if a <template> in a non-html namespace is ...
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: 21292
Blocks: 15476
  Show dependency treegraph
 
Reported: 2013-03-14 23:18 UTC by Rafael Weinstein
Modified: 2013-07-01 22:35 UTC (History)
6 users (show)

See Also:


Attachments

Description Rafael Weinstein 2013-03-14 23:18:54 UTC
E.g. <template><svg></template>

This is apropos of the HTML bug I just opened: 

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21292

What happens here is:

-EOF is hit
-The stack of template insertion modes is non-empty, so we generated a fake </template>
-The </template> handling pops past the first "template" tag on the stack, which is <svg template>
-It resets the insertion mode, which hits the (html) <template> tries to find the current one from the stack of template insertion modes...which is now empty.
=>crash
Comment 1 Ian 'Hixie' Hickson 2013-06-28 22:40:51 UTC
I assume this is really talking about this case:

   <template><svg><template>

(That is, the second tag is an open tag, not a close tag.)
Comment 2 Rafael Weinstein 2013-06-28 22:44:45 UTC
Yes. Correct. Thank you.
Comment 3 Ian 'Hixie' Hickson 2013-07-01 22:27:39 UTC
This is fixed now.
Comment 4 Rafael Weinstein 2013-07-01 22:35:44 UTC
Thanks, Hixie.