ShadowRoot
Generated from idl/dom.webidl when the site was built at 7aa23e2.
ShadowRoot is an interface in idl/dom.webidl, inheriting DocumentFragment, exposed in Window. What it does is on MDN; this page says what niso has of it.
Element.attachShadow is not supported, so there are no shadow roots; the interface is here for code that tests for one.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| Shadow DOM | Widely available | Partial 3.4% 26 of 756 subtests pass | 3 |
Members
Section titled “Members”readonly attribute DOMString mode;int32_t niso_shadow_root_get_mode(niso_dom* dom, niso_handle self, niso_str* out);readonly attribute Element host;int32_t niso_shadow_root_get_host(niso_dom* dom, niso_handle self, niso_handle* out);Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
adoptedStyleSheets(Constructed stylesheets)appendHTML(HTML setter methods)appendHTMLUnsafe(HTML setter methods)clonable(Shadow DOM)customElementRegistry(Scoped custom element registries)delegatesFocus(Shadow DOM)fullscreenElement(Fullscreen API)getAnimations(Web animations)getHTML(getHTML())pictureInPictureElement(Picture-in-picture (video))prependHTML(HTML setter methods)prependHTMLUnsafe(HTML setter methods)referenceTarget(Reference target)serializable(Shadow DOM)setHTML(Sanitizer API)setHTMLUnsafe(HTML setter methods)slotAssignment(Imperative slot assignment)streamAppendHTML(HTML streaming setters)streamAppendHTMLUnsafe(HTML streaming setters)streamHTML(HTML streaming setters)streamHTMLUnsafe(HTML streaming setters)streamPrependHTML(HTML streaming setters)streamPrependHTMLUnsafe(HTML streaming setters)styleSheets(CSS object model)