2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/DocumentFragment.idl>
|
2024-03-08 19:27:24 +01:00
|
|
|
#import <DOM/DocumentOrShadowRoot.idl>
|
2024-06-25 14:21:21 +02:00
|
|
|
#import <DOM/Element.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-07-27 20:42:20 +01:00
|
|
|
// https://dom.spec.whatwg.org/#shadowroot
|
2023-09-06 14:52:53 +12:00
|
|
|
[Exposed=Window]
|
2020-11-21 18:32:39 +00:00
|
|
|
interface ShadowRoot : DocumentFragment {
|
2023-01-28 20:31:56 +01:00
|
|
|
readonly attribute ShadowRootMode mode;
|
2024-05-01 23:52:19 +01:00
|
|
|
readonly attribute boolean delegatesFocus;
|
2023-09-01 07:25:40 -04:00
|
|
|
readonly attribute SlotAssignmentMode slotAssignment;
|
2024-06-25 14:12:19 +02:00
|
|
|
readonly attribute boolean clonable;
|
|
|
|
readonly attribute boolean serializable;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute Element host;
|
2024-05-02 00:01:22 +01:00
|
|
|
attribute EventHandler onslotchange;
|
2024-06-25 14:21:21 +02:00
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsing-and-serialization
|
|
|
|
|
2024-06-25 20:55:58 +01:00
|
|
|
// FIXME: [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html);
|
|
|
|
[CEReactions] undefined setHTMLUnsafe(DOMString html);
|
2024-06-25 14:52:06 +02:00
|
|
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
2024-06-25 14:21:21 +02:00
|
|
|
|
|
|
|
// FIXME: [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
|
|
|
|
[CEReactions, LegacyNullToEmptyString] attribute DOMString innerHTML;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2022-07-27 20:42:20 +01:00
|
|
|
|
2024-03-08 19:27:24 +01:00
|
|
|
ShadowRoot includes DocumentOrShadowRoot;
|
2022-07-30 11:31:17 +01:00
|
|
|
|
2022-07-27 20:42:20 +01:00
|
|
|
enum ShadowRootMode { "open", "closed" };
|
|
|
|
enum SlotAssignmentMode { "manual", "named" };
|