Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since September 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
serializable は ShadowRoot インターフェイスの読み取り専用プロパティで、このシャドウルートがシリアライズ可能であれば、true を返します。
設定されている場合、このシャドウルートは、Element.getHTML() または ShadowRoot.getHTML() メソッドを options.serializableShadowRoots 引数に true を指定して呼び出すことでシリアライズできます。
シャドウルートの serializable プロパティは、シャドウルートが作成された際に指定されます。<template> 要素に shadowrootserializable 属性を(許可された shadowrootmode 値とともに)追加することで宣言的に指定するか、options.serializable 引数を true に設定して Element.attachShadow() を使用します。
このシャドウルートがシリアライズ可能であれば true、そうでなければ false。
| DOM # dom-shadowroot-serializable |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年4月12日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.