Re:Shadow DOM enabled in Firefox nightly
by hoppelhase on Monday May 28, 2018 @11:48AM
(#17173043)
Does any major frontend framework plan to use these native APIs? Seems like a good opportunity to enhance the performance of web apps to me.
[ Parent
| on HN ]
IIRC, Angular already ships with its own similar polyfill, so I'd guess it tries to fallback to native if possible. React doesn't really concern itself with styles anyway, though I guess they might need/want to make sure they're not standing in the way of using the shadow DOM.
Of the less-major ones, I only know that Polymer uses it - which makes sense, since this is one of the APIs it was explicitly created to push.
Re:Shadow DOM enabled in Firefox nightly
by krishanath on Monday May 28, 2018 @01:14PM
(#17173533)
Not a major framework, but UIBuilder lets you use Web Components using JSX, just like React:
Re:Shadow DOM enabled in Firefox nightly
by eat_veggies on Monday May 28, 2018 @12:35PM
(#17173312)
Polymer is pretty integrated with shadow dom iirc, although last time I used it I had to use a bunch of polyfills.
You don't need any polyfills on Chrome, Safari, Opera and soon Firefox obviously. Edge is the only holdout.
Re:Shadow DOM enabled in Firefox nightly
by acjohnson55 on Monday May 28, 2018 @12:22PM
(#17173236)
The way I see Shadow DOM is that it's an environment for an encapsulated web component or embedded app to run within. Most frameworks can be mounted to the DOM at a single spot, so should be pretty compatible, I would think.
There are also a lot of existing web components libraries that have been developed in anticipation of first class support for Shadow DOM in all browsers. See https://en.m.wikipedia.org/wiki/Web_Components#Libraries
Perhaps not as 'major', but Aurelia is intentionally aligned with web components and other standards:
Re:Shadow DOM enabled in Firefox nightly
by hoppelhase on Sunday June 10, 2018 @08:08PM
(#17280850)
Is it still a thing?
For custom elements, here's a list at https://custom-elements-everywhere.com/
Angular supports this for quite some time.