Esta página foi traduzida do inglês pela comunidade. Saiba mais e junte-se à comunidade MDN Web Docs.

View in English Always switch to English

HTMLContentElement.getDistributedNodes()

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨janeiro de 2020⁩.

{"* "}Some parts of this feature may have varying levels of support.

O método HTMLContentElement.getDistributedNodes() retorna um static NodeList do distributed nodes associado com este elemento <content>.

Syntaxe

var nodeList = object.getDistributedNodes()

Exemplo

js
//Pegue os nós distribuídos
var nodes = myContentObject.getDistributedNodes();

Especificações

Specification
HTML
# htmlslotelement

Compatibilidade com navegadores

Veja também