{{APIRef('Shadow DOM')}} {{Non-standard_header}}
The ShadowRoot
interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.
Properties
- {{domxref("ShadowRoot.host")}} {{readonlyinline}}
- A DOM element to which the
ShadowRoot
is attatched. - {{domxref("ShadowRoot.innerHTML")}}
- The DOM tree inside the
ShadowRoot
.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Shadow DOM')}} | {{Spec2('Shadow DOM')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(53.0)}} | {{CompatNo}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatNo}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatChrome(53.0)}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatChrome(53.0)}} |