Bug 74267 - Removing a shadowRoot doesn’t recover the rendering of light children.
Summary: Removing a shadowRoot doesn’t recover the rendering of light children.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Hayato Ito
URL:
Keywords:
Depends on:
Blocks: 72352
  Show dependency treegraph
 
Reported: 2011-12-11 23:46 PST by Hayato Ito
Modified: 2012-02-14 01:17 PST (History)
5 users (show)

See Also:


Attachments
attach light children after removing a shadow root (4.10 KB, patch)
2011-12-11 23:54 PST, Hayato Ito
rniwa: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hayato Ito 2011-12-11 23:46:04 PST
<h1>Hello!</h1>

var h = document.querySelector('h1');
var s = window.internals.ensureShadowRoot(h);
s.appendChild(document.createTextNode('Goodbye!'));
window.internals.removeShadowRoot(h);

I would expect to see

Hello!

but instead I see

Goodbye!
Comment 1 Hayato Ito 2011-12-11 23:54:15 PST
Created attachment 118745 [details]
attach light children after removing a shadow root
Comment 2 Ryosuke Niwa 2012-01-30 12:08:09 PST
Comment on attachment 118745 [details]
attach light children after removing a shadow root

Looks sane to me.
Comment 3 Hayato Ito 2012-01-30 22:38:02 PST
Committed r106336: <http://trac.webkit.org/changeset/106336>