mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
ce8d3d17c4
Both Element's and ShadowRoot's setHTMLUnsafe, and Document's static parseHTMLUnsafe methods are implemented.
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
#import <DOM/DocumentFragment.idl>
|
|
#import <DOM/DocumentOrShadowRoot.idl>
|
|
#import <DOM/Element.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
|
|
|
|
// FIXME: [CEReactions] undefined setHTMLUnsafe((TrustedHTML or DOMString) html);
|
|
[CEReactions] undefined setHTMLUnsafe(DOMString html);
|
|
DOMString getHTML(optional GetHTMLOptions options = {});
|
|
|
|
// FIXME: [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
|
|
[CEReactions, LegacyNullToEmptyString] attribute DOMString innerHTML;
|
|
};
|
|
|
|
ShadowRoot includes DocumentOrShadowRoot;
|
|
|
|
enum ShadowRootMode { "open", "closed" };
|
|
enum SlotAssignmentMode { "manual", "named" };
|