See the top of the local DOM chapter of the docs:

Note: Currently Polymer uses shady DOM by default on all browsers. To
opt-in to using shadow DOM where available, seeGlobal settings
<https://www.polymer-project.org/1.0/docs/devguide/settings.html>
https://www.polymer-project.org/1.0/docs/devguide/local-dom.html

You can enable native shadow DOM where available, but the default mode
helps people ensure that their code works properly across platforms.

Arthur


On Tue, Jun 16, 2015 at 7:53 AM, Ajedi32 <[email protected]> wrote:

> I was playing around with the new version of Polymer, and one thing I
> noticed was that Polymer doesn't seem to use Shadow DOM at all anymore:
>
> Polymer 0.5: http://plnkr.co/edit/JpgnpZedLocCOKbs5XB0?p=preview
> Polymer 1.0: http://plnkr.co/edit/J1N8BysaKSZnYGPcCdQj?p=preview
>
> If I open the dev tools in Chrome and inspect the custom elements in these
> examples, I can see that Polymer 0.5 puts the template content in a special
> "shadow-root" node, whereas Polymer 1.0 just uses a span element with a
> couple special classes on it. Why is this?
>
> I'm aware that Polymer 1.0 uses the new shady DOM polyfill instead of the
> full shadow DOM polyfill, but Chrome supports shadow dom natively AFAIK so
> that shouldn't effect anything, right?
>
> What's going on here?
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/eeca8cf6-d0d5-4438-9039-35cd0105b1a6%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/eeca8cf6-d0d5-4438-9039-35cd0105b1a6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CADSbU_x3B6XHyzDRKjNrosrTQ6HWyw%3DuA9u%3DW-7Cr1ZCbC%3DvoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to