[Webkit-unassigned] [Bug 78473] ShadowRoot needs innerHTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 21 23:37:09 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=78473





--- Comment #10 from Kaustubh Atrawalkar <kaustubh at motorola.com>  2012-02-21 23:37:09 PST ---
(In reply to comment #9)
> (From update of attachment 127944 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=127944&action=review
> 
> > Source/WebCore/dom/ShadowRoot.cpp:157
> > +        replaceChildrenWithFragment(toElement(this), fragment.release(), ec);
> 
> Does this really work?
> 
I am assuming this works as DocumentFragment is derived from ContainerNode.

> > LayoutTests/fast/dom/shadow/shadow-root-innerHTML.html:36
> > +
> 
> I'm confused. Why is div2 available even after setting another innerHTML?

Its only to show that it resides in the dom tree of the ShadowRoot. After setting innerHTML, the children gets replaced with the fragment.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list