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

Unable to extend iframe #580

Closed
robdodson opened this issue Jun 30, 2014 · 1 comment
Closed

Unable to extend iframe #580

robdodson opened this issue Jun 30, 2014 · 1 comment

Comments

@robdodson
Copy link
Contributor

I was just messing around with type extensions and noticed that extending iframe throws the following error.

Uncaught HierarchyRequestError: Failed to execute 'createShadowRoot' on 'Element': Author-created shadow roots are disabled for this element.

ex:

<polymer-element name="x-iframe" extends="iframe">
  <template>
    <h1>Hello from x-iframe</h1>
  </template>
  <script>
    Polymer('x-iframe', {

    });
  </script>
</polymer-element>

<iframe is="x-iframe"></iframe>```

I didn't see any mention of this in the custom elements or shadow DOM specs. Is this behavior explained more elsewhere?
@dfreedm
Copy link
Member

dfreedm commented Jun 30, 2014

There are more than a few elements that you cannot add ShadowDOM to in Chrome: https://code.google.com/p/chromium/issues/detail?id=234020

I'm not sure if adding a shadowdom to iframe ever really makes sense, since it would make the contents from the frame hidden forever.

@sorvell sorvell closed this as completed Aug 12, 2014
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

3 participants