--- title: HTMLShadowElement slug: Web/API/HTMLShadowElement tags: - Necesita traducción translation_of: Web/API/HTMLShadowElement ---
{{APIRef("Web Components")}}{{obsolete_header}}

The HTMLShadowElement interface represents a {{HTMLElement("shadow")}} HTML Element, which is used in Shadow DOM.

{{InheritanceDiagram(600, 120)}}

Properties

This interface inherits the properties of {{domxref("HTMLElement")}}.

Methods

This interface inherits the methods of {{domxref("HTMLElement")}}.

{{domxref("HTMLShadowElement.getDistributedNodes()")}}
Returns a static {{domxref("NodeList")}} of the {{glossary("distributed nodes")}} associated with this <shadow> element. 

Specifications

Specification Status Comment
{{SpecName('Shadow DOM', '#the-shadow-element', 'shadow')}} {{Spec2('Shadow DOM')}} Initial definition

Browser compatibility

{{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.

See also