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 20829 - [Templates]: The foster agency algorithm should be prevented from pulling nodes out of the template content
Summary: [Templates]: The foster agency algorithm should be prevented from pulling nod...
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: 2013-01-30 21:53 UTC by Rafael Weinstein
Modified: 2013-01-30 21:57 UTC (History)
6 users (show)

See Also:


Attachments

Description Rafael Weinstein 2013-01-30 21:53:03 UTC
e.g.

<body><template><i><menu></i>

The problem here is that, as written, the algorithm will remove the <menu> append it to a newly created <i> and append <i> to the "next" item in the stack of open elements (which is <template>).

The solution is to modify the rule to append to the template's content, when it currently would have appended to the template itself.
Comment 1 Rafael Weinstein 2013-01-30 21:57:44 UTC
https://dvcs.w3.org/hg/webcomponents/rev/50ce1f368c1a