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

{{Compat("api.HTMLShadowElement")}}

See also