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

[Shadow DOM] Make Shadow DOM optional #1042

Closed
Nevraeka opened this issue Dec 19, 2014 · 4 comments
Closed

[Shadow DOM] Make Shadow DOM optional #1042

Nevraeka opened this issue Dec 19, 2014 · 4 comments

Comments

@Nevraeka
Copy link

It has been argued that HTML Imports, Templates, & Shadow DOM are add ons for Custom Elements. The Polymer library will always use Shadow DOM (polyfilled or native). It would be a great advantage to have Shadow DOM as a configuration flag globally in the flags object OR even at the element level with a property like shadow : false.

Any thoughts on this?

@ebidel
Copy link
Contributor

ebidel commented Dec 19, 2014

I think we're exploring this for 0.8 and beyond. @sorvell and @sjmiles will have more info.

@ssorallen
Copy link
Contributor

Disabling shadow DOM completely would affect the common practice of using id attributes for element references and for styling. If an element is used more than once on a page, wouldn't the page have multiple elements with the same ID?

@Nevraeka
Copy link
Author

Yes It would. I would do this only per element

@justinfagnani
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants