RESOLVED DUPLICATE of bug 87732 80086
"internals.ensureShadowRoot()" and "new WebKitShadowRoot" don't seem to work on JSC
https://bugs.webkit.org/show_bug.cgi?id=80086
Summary "internals.ensureShadowRoot()" and "new WebKitShadowRoot" don't seem to work ...
Roland Steiner
Reported 2012-03-01 20:04:28 PST
Created attachment 129798 [details] test case see attached test file for an example. The first 3 shouldBeDefined() calls succeed if built and run with shadow DOM enabled, but the returned wrapper seems to be of a DocumentFragment rather than a ShadowRoot, and doesn't have .innerHTML, .host or .getElementById defined.
Attachments
test case (1.35 KB, text/html)
2012-03-01 20:04 PST, Roland Steiner
no flags
test case, corrected (1.42 KB, text/html)
2012-03-01 22:15 PST, Roland Steiner
no flags
Roland Steiner
Comment 1 2012-03-01 22:15:35 PST
Created attachment 129814 [details] test case, corrected Simplified test case from LayoutTests/fast/css/style-scoped/style-scoped-in-shadow.html
Chris Dumez
Comment 2 2012-06-08 01:30:46 PDT
This is being addressed in Bug 87732. Basically, the solution is to add "JSGenerateToJSObject" extended attribute to ShadowRoot.idl so that a toJS() method is generated for JSShadowRoot.
Chris Dumez
Comment 3 2012-06-12 22:31:41 PDT
*** This bug has been marked as a duplicate of bug 87732 ***
Note You need to log in before you can comment on or make changes to this bug.