aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/htmlcontentelement/getdistributednodes/index.md
blob: c34b0e1a695359fd9347cc8487f4fd29c04f2bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: HTMLContentElement.getDistributedNodes()
slug: Web/API/HTMLContentElement/getDistributedNodes
tags:
  - API
  - HTML DOM
  - Référence(2)
  - Web Components
translation_of: Web/API/HTMLContentElement/getDistributedNodes
---
{{ APIRef("Web Components") }}

La méthode **`HTMLContentElement.getDistributedNodes()`** retourne un {{domxref("NodeList")}} statique du {{glossary("distributed nodes")}} associé avec l'élément `<content>`.

## Syntaxe

    var nodeList = object.getDistributedNodes()

## Exemple

```js
// Récupère les éléments
var nodes = myContentObject.getDistributedNodes();
```

## Spécifications

| Spécification                                                                    | Status                           | Commentaire |
| -------------------------------------------------------------------------------- | -------------------------------- | ----------- |
| {{SpecName('Shadow DOM', '#the-content-element', 'content')}} | {{Spec2('Shadow DOM')}} |             |

## Compatibilité des navigateurs

{{Compat("api.HTMLContentElement.getDistributedNodes")}}

## Voir aussi

- [HTMLContentElement](/fr/docs/Web/API/HTMLContentElement)