mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-17 15:25:35 +00:00
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.
14 lines
886 B
Text
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;
|
|
};
|