3 ms·
Both Polymer v2 (previous version) and Polymer v3 (current version) are based on Shadow DOM v1, as can be seen in the docs (https://www.polymer-project.org/3.0/
by mindcrash 8y ago
Both Polymer v2 (previous version) and Polymer v3 (current version) are based on Shadow DOM v1, as can be seen in the docs (https://www.polymer-project.org/3.0/docs/devguide/shadow-dom https://www.polymer-project.org/3.0/docs/devguide/shadow-dom, https://www.polymer-project.org/2.0/docs/devguide/feature-overview https://www.polymer-project.org/2.0/docs/devguide/feature-ov...) so this statement is VERY strange.
Although it's true that only Safari and Chrome (through WebKit and Blink) currently have the best support for Web Components, and polyfills are required for everything else due to flaky support.
Google even mentions this in the Polymer README:
"Web Components are now implemented natively on Safari and Chrome (~70% of installed browsers), and run well on Firefox, Edge, and IE11 using polyfills. Read more below."
Source: https://github.com/Polymer/polymer https://github.com/Polymer/polymer
- detaro 8y agoWell, if I check the source of the desktop_polymer.js on Youtube I see v0 API calls in it, and not their v1 equivalents. (e.g. createShadowRoot vs attachShadow). I might be missing something, since I obviously don't understand how all of that works, but it seems supportive at least?
- bzbarsky 8y agoYoutube is using Polymer v1 as far as I can tell.