Bug 74267

Summary: Removing a shadowRoot doesn’t recover the rendering of light children.
Product: WebKit Reporter: Hayato Ito <hayato>
Component: DOMAssignee: Hayato Ito <hayato>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, dominicc, jchaffraix, morrita, rolandsteiner
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 72352    
Attachments:
Description Flags
attach light children after removing a shadow root rniwa: review+

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>