Hacker News new | ask | show | jobs
by andreapaiola 3690 days ago
Yeah, but last time I checked it fails: for example there isn't a way to polyfill shadow DOM...
2 comments

Polymer 1.0 doesn't use shadow DOM (unless you ask it to). Instead it uses this thing called 'shady DOM', which is roughly equivalent but requires accesses to the DOM to go through APIs.

See here for the details:

https://www.polymer-project.org/1.0/articles/shadydom.html

The difference between the webcomponents.js polyfill and webcomponents-lite.js is precisely that the former includes the shadow dom polyfill.