mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
28 lines
1 KiB
Text
28 lines
1 KiB
Text
#import <DOM/DocumentFragment.idl>
|
|
#import <DOM/DocumentOrShadowRoot.idl>
|
|
#import <DOM/Element.idl>
|
|
#import <TrustedTypes/TrustedHTML.idl>
|
|
|
|
// https://dom.spec.whatwg.org/#shadowroot
|
|
[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;
|
|
|
|
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsing-and-serialization
|
|
|
|
[CEReactions] undefined setHTMLUnsafe((TrustedHTML or Utf16DOMString) html);
|
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
|
|
[CEReactions, LegacyNullToEmptyString] attribute (TrustedHTML or Utf16DOMString) innerHTML;
|
|
};
|
|
|
|
ShadowRoot includes DocumentOrShadowRoot;
|
|
|
|
enum ShadowRootMode { "open", "closed" };
|
|
enum SlotAssignmentMode { "manual", "named" };
|