Polymer:使用 <content> 标签不好吗? (可能弃用?)
Polymer: Is it bad to use the <content> tag? (Possible deprecation?)
它似乎已被弃用。但是,无论如何,它都用于 Google 的一些聚合物元素中
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content
是的,这很糟糕。该元素是计划功能的一部分,并未在所有浏览器中实现。正如页面所说,在 Firefox 中它必须单独打开。
Can I use... 也表明它基本上是 Chrome 唯一的东西。
Polymer 网站说
Polymer 1.0 replaces the shadow DOM polyfill with a lightweight shim
所以它为不支持它的浏览器提供了功能。这就是它可以使用它的原因。
它似乎已被弃用。但是,无论如何,它都用于 Google 的一些聚合物元素中
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content
是的,这很糟糕。该元素是计划功能的一部分,并未在所有浏览器中实现。正如页面所说,在 Firefox 中它必须单独打开。
Can I use... 也表明它基本上是 Chrome 唯一的东西。
Polymer 网站说
Polymer 1.0 replaces the shadow DOM polyfill with a lightweight shim
所以它为不支持它的浏览器提供了功能。这就是它可以使用它的原因。