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

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

Syntax

var nodeList = object.getDistributedNodes()

Example

// Get the distributed nodes
var nodes = myShadowObject.getDistributedNodes();

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 {{CompatNo}} {{CompatNo}} 26 {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 37 {{CompatNo}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}}

See also