ladybird/Libraries/LibWeb/HTML/HTMLTemplateElement.idl
Andreas Kling f49335f210 LibWeb: Align declarative shadow root parsing
Teach the Rust parser to recognize declarative shadow root templates and
pass the parsed mode, slot assignment, clonable, serializable, and
focus-delegation flags to the C++ DOM host.

Expose shadowRootSlotAssignment reflection with the spec-defined named
missing and invalid value defaults, and extend the ShadowDOM text test
coverage for the reflected property and parser-created shadow roots.
2026-05-17 15:35:56 +02:00

14 lines
886 B
Text

// https://html.spec.whatwg.org/multipage/scripting.html#htmltemplateelement
[Exposed=Window]
interface HTMLTemplateElement : HTMLElement {
[HTMLConstructor] constructor();
[ImplementedAs=content_for_bindings] readonly attribute DocumentFragment content;
[Reflect=shadowrootmode, Enumerated=ShadowRootMode, CEReactions] attribute DOMString shadowRootMode;
[Reflect=shadowrootslotassignment, Enumerated=SlotAssignmentMode, CEReactions] attribute DOMString shadowRootSlotAssignment;
[Reflect=shadowrootdelegatesfocus, CEReactions] attribute boolean shadowRootDelegatesFocus;
[Reflect=shadowrootclonable, CEReactions] attribute boolean shadowRootClonable;
[Reflect=shadowrootserializable, CEReactions] attribute boolean shadowRootSerializable;
[Reflect=shadowrootcustomelementregistry, CEReactions] attribute DOMString shadowRootCustomElementRegistry;
};