HTMLTemplateElement: shadowRootMode プロパティ
Baseline 2024Newly available
Since February 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
shadowRootMode
は HTMLTemplateElement
インターフェイスのプロパティで、関連付けられた <template>
要素の shadowrootmode
属性の値を反映します。
このプロパティは開発者にとって有用ではないことに注意してください。
<template>
要素を使用して宣言的に ShadowRoot
を作成する場合は、このオブジェクトおよびプロパティは存在しません。
それ以外の場合、HTMLTemplateElement
が作成された場合は、オブジェクトがシャドウルートではないため、このプロパティの値は無関係であり、シャドウルートに変更することはできません。
値
関連付けられた <template>
要素の shadowrootmode
属性の値を反映します。
仕様書
Specification |
---|
HTML # dom-template-shadowrootmode |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
shadowRootMode |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No 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.
関連情報
shadowrootmode
(<template>
要素の属性)ShadowRoot.mode