Bug 80086 - "internals.ensureShadowRoot()" and "new WebKitShadowRoot" don't seem to work on JSC
Summary: "internals.ensureShadowRoot()" and "new WebKitShadowRoot" don't seem to work ...
Status: RESOLVED DUPLICATE of bug 87732
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 20:04 PST by Roland Steiner
Modified: 2012-06-12 22:31 PDT (History)
6 users (show)

See Also:


Attachments
test case (1.35 KB, text/html)
2012-03-01 20:04 PST, Roland Steiner
no flags Details
test case, corrected (1.42 KB, text/html)
2012-03-01 22:15 PST, Roland Steiner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Steiner 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.
Comment 1 Roland Steiner 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
Comment 2 Chris Dumez 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.
Comment 3 Chris Dumez 2012-06-12 22:31:41 PDT

*** This bug has been marked as a duplicate of bug 87732 ***