html template & import link bug

html templates is OK

https://caniuse.com/#search=html%20template

image

html imports is Error

https://caniuse.com/#search=html%20imports

image


https://caniuse.com/#search=html


image

image

image


shit firefox & HTML Imports

https://caniuse.com/#search=html

Firefox has no plans to support HTML imports though for now it can be enabled through the "dom.webcomponents.enabled" preference in about:config

https://hacks.mozilla.org/2014/12/mozilla-and-web-components/

https://bugzilla.mozilla.org/buglist.cgi?quicksearch=html+imports

image


https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

https://developer.mozilla.org/en-US/docs/Web/API

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5

https://developer.mozilla.org/en-US/docs/Web/API/Touch_events

https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import


https://css-tricks.com/should-you-use-a-template/

https://webdesign.tutsplus.com/tutorials/how-to-customize-an-html-template--cms-25886

polyfill

https://stackoverflow.com/questions/22222950/html5-template-not-working-on-internet-explorer-how-to-solve-it

https://github.com/neovov/template-element-polyfill


https://github.com/webcomponents/webcomponentsjs/tree/v1#how-to-use
https://github.com/webcomponents/webcomponentsjs/blob/v1/webcomponents-hi-sd-ce.js
https://github.com/webcomponents/webcomponentsjs/raw/v1/webcomponents-hi-sd-ce.js


html imports 有用过的吗?已入坑,发现除了 Chrome 都不好使呀。

polyfill

https://developer.mozilla.org/en-US/docs/Web/Web_Components

https://www.webcomponents.org/community/articles/introduction-to-html-imports

https://github.com/webcomponents/webcomponentsjs/tree/v1
https://developers.google.com/events/io/sessions/318907648
https://www.html5rocks.com/en/tutorials/webcomponents/imports/
https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports
https://developer.mozilla.org/en-US/docs/Web/Web_Components
https://www.w3.org/TR/html-imports/

https://caniuse.com/#search=html%20template

http://blog.teamtreehouse.com/introduction-html-imports
https://github.com/googlearchive/HTMLImports
https://github.com/webcomponents/webcomponentsjs

转载于:https://www.cnblogs.com/xgqfrms/p/9407514.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值