Using Shadow DOM with polyfills, platform.js and webcomponents.js

雨燕双飞 提交于 2020-01-06 04:11:46

问题


Currently Shadow DOM is supported by only Chrome and Opera (only webkit) and can be optionally enabled in Firefox, it can how ever be used in all browsers using webcomponents.js (https://www.polymer-project.org/0.5/docs/start/platform.html).

Is someone already using this? Is it 100% compatible with other non-supported browsers, any help would be appreciated.

(Ref link about shadow dom and webcompanents.js: http://webcomponents.org/articles/introduction-to-shadow-dom/)


回答1:


After a bit or research I've found out Shadow DOM can be used in browsers IE10+, Chrome, firefox and safari using webcomponents.js



来源:https://stackoverflow.com/questions/30203688/using-shadow-dom-with-polyfills-platform-js-and-webcomponents-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!