serenity/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.idl
Andreas Kling 6217ebe33c LibWeb: Add HTMLTemplateElement IDL attrs for declarative shadow DOM
(cherry picked from commit a0e111220913ec1bf8d51dde37174120781b0a5f)
2024-06-26 08:48:11 +02:00

15 lines
675 B
Text

#import <DOM/DocumentFragment.idl>
#import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/scripting.html#htmltemplateelement
[Exposed=Window]
interface HTMLTemplateElement : HTMLElement {
[HTMLConstructor] constructor();
readonly attribute DocumentFragment content;
[Reflect=shadowrootmode, Enumerated=ShadowRootMode, CEReactions] attribute DOMString shadowRootMode;
[Reflect=shadowrootdelegatesfocus, CEReactions] attribute boolean shadowRootDelegatesFocus;
[Reflect=shadowrootclonable, CEReactions] attribute boolean shadowRootClonable;
[Reflect=shadowrootserializable, CEReactions] attribute boolean shadowRootSerializable;
};