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