Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot extend select element #7

Open
jonrimmer opened this issue Apr 21, 2012 · 1 comment
Open

Cannot extend select element #7

jonrimmer opened this issue Apr 21, 2012 · 1 comment

Comments

@jonrimmer
Copy link

Quite a bit of the custom elements explanation focuses on extending the select element, but trying to do this using the polyfill fails. The call to var shadowRoot = new WebKitShadowRoot(element); gives error HIERARCHY_REQUEST_ERR: DOM Exception 3. Not sure if this is a bug in the polyfill or in the webkit shadow DOM implementation?

@dglazkov
Copy link
Owner

It's a WebKit bug. For the moment, we have to limit what we can support due to the way elements are implemented internally. See this function: http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/dom/ShadowRoot.cpp&exact_package=chromium&q=ShadowRoot&type=cs&l=75

It also conveniently lists all the bugs to fix :)

sorvell referenced this issue in sorvell/Web-Components-Polyfill Aug 17, 2012
component, stylesheet, and css paths are all now relative to document from which they are loaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants