Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The HTMLShadowElement interface represents a <shadow> HTML Element, which is used in Shadow DOM.

Properties

This interface inherits the properties of HTMLElement.

Methods

This interface inherits the methods of HTMLElement.

HTMLShadowElement.getDistributedNodes()
Returns a static NodeList of the distributed nodes associated with this <shadow> element. 

Specifications

This feature is no longer defined by any specifications.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support35 No28 — 581 No26 No
getDistributedNodes35 No No No26 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support3535 No28 — 581 ? No Yes
getDistributedNodes3535 No No ? No Yes

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

See also

Document Tags and Contributors

Last updated by: ExE-Boss,