--- title: HTMLShadowElement slug: Web/API/HTMLShadowElement tags: - Necesita traducción translation_of: Web/API/HTMLShadowElement ---
The HTMLShadowElement
interface represents a {{HTMLElement("shadow")}} HTML Element, which is used in Shadow DOM.
{{InheritanceDiagram(600, 120)}}
This interface inherits the properties of {{domxref("HTMLElement")}}.
This interface inherits the methods of {{domxref("HTMLElement")}}.
<shadow>
element. Specification | Status | Comment |
---|---|---|
{{SpecName('Shadow DOM', '#the-shadow-element', 'shadow')}} | {{Spec2('Shadow DOM')}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 35 | {{CompatGeckoDesktop("28")}}[1] | {{CompatNo}} | 26 | {{CompatNo}} |
{{domxref("HTMLShadowElement.getDistributedNodes", "getDistributedNodes()")}} | 35 | {{CompatNo}} | {{CompatNo}} | 26 | {{CompatNo}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | 37 | {{CompatGeckoMobile("28")}}[1] | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} |
{{domxref("HTMLShadowElement.getDistributedNodes", "getDistributedNodes()")}} | 37 | {{CompatNo}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} |
[1] If Shadow DOM is not enabled in Firefox, <shadow> elements will behave like {{domxref("HTMLUnknownElement")}}. Shadow DOM was first implemented in Firefox 28 and is behind a preference, dom.webcomponents.enabled
, which is disabled by default.