Definition
DOM Standard defines ShadowRoot
ShadowRoot includes DocumentOrShadowRoot;
[Exposed=Window]
interface ShadowRoot : DocumentFragment {
readonly attribute ShadowRootMode mode;
readonly attribute boolean delegatesFocus;
readonly attribute SlotAssignmentMode slotAssignment;
readonly attribute boolean clonable;
readonly attribute boolean serializable;
readonly attribute Element host;
attribute EventHandler onslotchange;
};
This interface is extended in the following specifications:
- HTML Standard
partial interface ShadowRoot { [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html); DOMString getHTML(optional GetHTMLOptions options = {}); [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface ShadowRoot : DocumentFragment {
readonly attribute ShadowRootMode mode;
readonly attribute boolean delegatesFocus;
readonly attribute SlotAssignmentMode slotAssignment;
readonly attribute boolean clonable;
readonly attribute boolean serializable;
readonly attribute Element host;
attribute EventHandler onslotchange;
[CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html);
DOMString getHTML(optional GetHTMLOptions options = {});
[CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
};
Methods and attributes that return objects implementing ShadowRoot
Referring IDL interfaces/dictionaries
Referring specifications
- HTML Standard refers to
ShadowRoot
- CSSOM View Module refers to
ShadowRoot
- Selection API refers to
ShadowRoot
- Scalable Vector Graphics (SVG) 2 refers to
ShadowRoot