Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

A interface HTMLShadowElement representa um  elemento HTML <shadow>, Ao qual é usado no Shadow DOM.

Propriedades

 Esta interface herda as propriedades do HTMLElement.

Métodos

Esta interface herda os métodos do HTMLElement.

HTMLShadowElement.getDistributedNodes()
Retorna uma estática NodeList do distributed nodes associado com este elemento <shadow>.

Especificações

Especificação Status Comentário
Shadow DOM
The definition of 'shadow' in that specification.
Obsoleto  

Browser compatível

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLShadowElement
DeprecatedNon-standard
Chrome Full support 35Edge No support NoFirefox No support 28 — 58
Disabled
No support 28 — 58
Disabled
Disabled From version 28 until version 58 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 26Safari No support NoWebView Android Full support 37Chrome Android Full support 35Firefox Android No support 28 — 58
Disabled
No support 28 — 58
Disabled
Disabled From version 28 until version 58 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android Full support Yes
getDistributedNodes
DeprecatedNon-standard
Chrome Full support 35Edge No support NoFirefox No support NoIE No support NoOpera Full support 26Safari No support NoWebView Android Full support 37Chrome Android Full support 35Firefox Android No support NoOpera Android ? Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
User must explicitly enable this feature.
User must explicitly enable this feature.

Se Shadow DOM não é habilitado no Firefox, os elementos <shadow> se comportarão como HTMLUnknownElement. Shadow DOM foi implementado primeiro no Firefox 28 e está por trás de uma preferência, dom.webcomponents.enabled, ao qual é desabilitado por padrão. [1]

Veja também

 

Etiquetas do documento e colaboradores

Colaboradores desta página: mdnwebdocs-bot, Sipmann, mak213k
Última atualização por: mdnwebdocs-bot,