Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLShadowElement

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

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

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

Browser compatibility

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.

See also

 

文档标签和贡献者

 此页面的贡献者: markg, teoli
 最后编辑者: markg,