1. Tecnologia Web para desenvolvedores
  2. APIs da Web
  3. HTMLContentElement.getDistributedNodes()

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

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /