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 21809 - [Templates]: <template> should allow <body> as a child
Summary: [Templates]: <template> should allow <body> as a child
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 15476
  Show dependency treegraph
 
Reported: 2013-04-24 03:53 UTC by Eric Bidelman
Modified: 2015-08-04 09:28 UTC (History)
3 users (show)

See Also:


Attachments

Description Eric Bidelman 2013-04-24 03:53:41 UTC
Use case is filling an iframe[seamless].srcdoc with template.innerHTML.
I want to override the <body> an iframe creates by default. With the
seamless attribute, the styles bleed through from the parent frame so the
frame inherits the body styles defined in the parent. Thus, there's no way
to override them in the iframe.

Here's an example:
http://jsbin.com/akuhob/3/edit
Comment 1 Hayato Ito 2015-07-06 07:15:42 UTC
Changing the category:
  From: WebAppsWG => Components Model
  To: WHATWG => HTML
Comment 2 Anne 2015-08-04 09:28:13 UTC
Seems this is old feedback about the original design, not against the current specification.