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(HTMLString html); DOMString getHTML(optional GetHTMLOptions options = {}); [CEReactions] attribute [LegacyNullToEmptyString] HTMLString 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(HTMLString html);
DOMString getHTML(optional GetHTMLOptions options = {});
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
};
Methods and attributes that return objects implementing ShadowRoot
Referring IDL interfaces/dictionaries
Referring specifications
- HTML Standard refers to
ShadowRoot
- Selection API refers to
ShadowRoot
- Scalable Vector Graphics (SVG) 2 refers to
ShadowRoot