HTMLShadowElement

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

PropertiesEdit

This interface inherits the properties of HTMLElement.

MethodsEdit

This interface inherits the methods of HTMLElement.

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

SpecificationsEdit

Specification Status Comment
Shadow DOM
The definition of 'shadow' in that specification.
Working Draft  

Browser compatibilityEdit

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 35 28 (28) [1] Not supported 26 Not supported
getDistributedNodes() 35 Not supported Not supported 26 Not supported

[1] If Shadow DOM is not enabled in Firefox, <shadow> elements will behave like HTMLUnknownElement. Shadow DOM was first implemented in Firefox 28 and is behind a preference, dom.webcomponents.enabled, which is disabled by default.

See alsoEdit

 

Document Tags and Contributors

 Contributors to this page: markg, teoli
 Last updated by: markg,