summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/ShadowRoot.idl
blob: 1190e7bb70920d89f8e6364745b05360903fcd83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import <DOM/DocumentFragment.idl>
#import <DOM/InnerHTML.idl>

// https://dom.spec.whatwg.org/#shadowroot
interface ShadowRoot : DocumentFragment {
    // FIXME: mode should return a ShadowRootMode
    readonly attribute DOMString mode;
    // FIXME: readonly attribute boolean delegatesFocus;
    // FIXME: readonly attribute SlotAssignmentMode slotAssignment;
    readonly attribute Element host;
    // FIXME: attribute EventHandler onslotchange;
};

ShadowRoot includes InnerHTML;

enum ShadowRootMode { "open", "closed" };
enum SlotAssignmentMode { "manual", "named" };