--- title: HTMLShadowElement.getDistributedNodes() slug: Web/API/HTMLShadowElement/getDistributedNodes tags: - Necesita traducción translation_of: Web/API/HTMLShadowElement/getDistributedNodes ---
The HTMLShadowElement.getDistributedNodes()
method returns a static {{domxref("NodeList")}} of the {{glossary("distributed nodes")}} associated with this <shadow>
element.
var nodeList = object.getDistributedNodes()
// Get the distributed nodes var nodes = myShadowObject.getDistributedNodes();
Specification | Status | Comment |
---|---|---|
{{SpecName('Shadow DOM', '#the-shadow-element', 'shadow')}} | {{Spec2('Shadow DOM')}} | Initial definition |