slot
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
slot
はグローバル属性で、シャドウ DOM のシャドウツリー内にあるスロットを、ある要素に割り当てます。 slot
属性をもつ要素には、 <slot>
要素に name
属性の値を指定することで生成されたスロット
の値がその slot
属性の値と一致する生成されたスロットに割り当てられます。
例については、テンプレートとスロットの使用ガイドを参照してください。
仕様書
Specification |
---|
HTML # attr-slot |
DOM # ref-for-dom-element-slot① |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
slot |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- すべてのグローバル属性