Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> That leaves only IE11/Edge with polyfills.

what polyfills are you talking about? And no, Polymer is not a polyfill for custom element. Please link me to a library that will polyfill the entire shadow DOM and Custom Element spec so that I can write the same code without polyfills on platforms that support both specs and only load the polyfills on platforms that do not.



https://github.com/webcomponents/webcomponentsjs - all frameworks use same polyfill.

https://github.com/vuejs/vue-web-component-wrapper

"You will also need the Shady DOM + Custom Elements polyfill." from Vue docs. Same polyfills are used by svelte etc.


https://github.com/WebComponents/webcomponentsjs

Quote from the readme.

" A suite of polyfills supporting the Web Components specs:

Custom Elements v1: allows authors to define their own custom tags (spec, tutorial, polyfill).

Shadow DOM v1: provides encapsulation by hiding DOM subtrees under shadow roots (spec, tutorial, shadydom polyfill, shadycss polyfill). "


.


What do you think youtube, ing, netflix, or EA properties use? ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: