【发布时间】:2017-01-19 09:57:29
【问题描述】:
我正在示例应用程序中尝试 Web 组件。由于某些浏览器不包含某些规范,因此我尝试使用 polyfill。在 Mozilla firefox 中,我尝试启用密钥 dom.webcomponents.enabled 并添加一些 polyfill(不在浏览器中)。我使用了来自 webcomponents.js polyfill 的 HTML Import polyfill。
HTMLImport 仍然无法在 firefox、internet explorer 中运行(即使使用 polyfill)。 (https://github.com/webcomponents/webcomponentsjs)
我还尝试了 customElements v1 polyfill,但无法在 Internet Explorer 和 firefox 中使用。 (https://github.com/webcomponents/custom-elements)
有没有人成功地将 HTMLimports polyfill 与 customElements V1 polyfill 结合起来?
【问题讨论】:
标签: web-component polyfills custom-element html-imports