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.
The HTMLShadowElement
interface represents a <shadow>
HTML Element, which is used in Shadow DOM.
This interface inherits the properties of HTMLElement
.
This interface inherits the methods of HTMLElement
.
HTMLShadowElement.getDistributedNodes()
NodeList
of the distributed nodes associated with this <shadow>
element. Specification | Status | Comment |
---|---|---|
Shadow DOM The definition of 'shadow' in that specification. | Working Draft |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 35 | 28 (28) [1] | No support | 26 | No support |
getDistributedNodes() | 35 | No support | No support | 26 | No support |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | 37 | 28.0 (28) [1] | No support | ? | ? |
getDistributedNodes() | 37 | No support | No support | ? | ? |
[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.
<shadow>
HTML element, implementing this interface.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLShadowElement