From 8779a3ea7080a7ecfba8da4cbd1a1b9d8dd32a55 Mon Sep 17 00:00:00 2001
From: Keith Cirkel shadowrootclonableshadowrootserializableshadowrootcustomelementregistryshadowrootslotassignment
The shadowrootslotassignment content
+ attribute is an enumerated attribute with the following keywords and states:
| Keyword + | State + | Brief description + |
|---|---|---|
named
+ | Named + | The declarative shadow root uses named slot assignment. + |
manual
+ | Manual + | The declarative shadow root uses manual slot assignment. + |
The shadowrootslotassignment
+ attribute's invalid value default and missing value default are both the Named state.
The template contents of a template element are not children of the element itself.
Let slotAssignment be "named".
If templateStartTag has a shadowrootslotassignment attribute
+ whose value is an ASCII case-insensitive match for "manual", then set slotAssignment to "manual".
If declarativeShadowHostElement is a shadow host, then insert an element at the adjusted insertion location with template.
Attach a shadow root with
declarativeShadowHostElement, mode, clonable,
- serializable, delegatesFocus, "named", and
+ serializable, delegatesFocus, slotAssignment, and
registry.
If an exception is thrown, then catch it and:
@@ -144949,6 +144984,10 @@ document.body.appendChild(text);If shadow's clonable is set, then append
" shadowrootclonable=""".
If shadow's slot assignment is "manual", then append " shadowrootslotassignment="manual"".
Let shouldAppendRegistryAttribute be the result of running these steps:
@@ -152882,7 +152921,8 @@ interface External {shadowrootdelegatesfocus;
shadowrootclonable;
shadowrootserializable;
- shadowrootcustomelementregistry
+ shadowrootcustomelementregistry;
+ shadowrootslotassignment
HTMLTemplateElementtemplate
shadowrootslotassignment
+ template
+ named";
+ "manual"
shape
area
From c78ef20c5b9247b86707736207f50e4aba4d344c Mon Sep 17 00:00:00 2001
From: Keith Cirkel HTMLTemplateElement.The shadowRootSlotAssignment IDL attribute
+ must reflect the shadowrootslotassignment content attribute,
+ limited to only known values.
Let slotAssignment be "named".
If templateStartTag has a shadowrootslotassignment attribute
- whose value is an ASCII case-insensitive match for "manual", then set slotAssignment to "manual".
If templateStartTag's shadowrootslotassignment attribute is
+ in the Manual state, then
+ set slotAssignment to "manual".
If declarativeShadowHostElement is a shadow host, then
insert an element at the adjusted insertion location with
From e04d299ce12c521eff3e770190b721880a2343e1 Mon Sep 17 00:00:00 2001
From: Keith Cirkel
The shadowrootclonable content attribute is a
- boolean attribute.
The shadowrootserializable content
- attribute is a boolean attribute.
The shadowrootcustomelementregistry
- content attribute is a boolean attribute.
The shadowrootslotassignment content
attribute is an enumerated attribute with the following keywords and states:
The shadowrootclonable content attribute is a
+ boolean attribute.
The shadowrootserializable content
+ attribute is a boolean attribute.
The shadowrootcustomelementregistry
+ content attribute is a boolean attribute.
The template contents of a template element are not children of the element itself.
If shadow's serializable is set, then append
" shadowrootserializable=""".
If shadow's clonable is set, then append
- " shadowrootclonable=""".
If shadow's slot assignment is "manual", then append " shadowrootslotassignment="manual"".
If shadow's clonable is set, then append
+ " shadowrootclonable=""".
Let shouldAppendRegistryAttribute be the result of running these steps:
From 794d13ab1143bb3911ff559d3d4747557403c08f Mon Sep 17 00:00:00 2001 From: Keith CirkelshadowrootmodeshadowrootdelegatesfocusshadowrootslotassignmentshadowrootclonableshadowrootserializableshadowrootcustomelementregistryshadowrootslotassignmentHTMLTemplateElement.The shadowRootCustomElementRegistry IDL - attribute intentionally does not have a boolean type so it can be extended.
-The shadowRootSlotAssignment IDL attribute
@@ -68505,6 +68501,10 @@ interface HTMLTemplateElement : HTMLElement {
limited to only known values.
The shadowRootCustomElementRegistry IDL + attribute intentionally does not have a boolean type so it can be extended.
+Let mode be templateStartTag's shadowrootmode attribute's value.
Let slotAssignment be "named".
If templateStartTag's shadowrootslotassignment attribute is
+ in the Manual state, then
+ set slotAssignment to "manual".
Let clonable be true if templateStartTag has a shadowrootclonable attribute; otherwise
false.
Let slotAssignment be "named".
If templateStartTag's shadowrootslotassignment attribute is
- in the Manual state, then
- set slotAssignment to "manual".
If declarativeShadowHostElement is a shadow host, then insert an element at the adjusted insertion location with template.
shadowrootmode;
shadowrootdelegatesfocus;
+ shadowrootslotassignmentshadowrootclonable;
shadowrootserializable;
shadowrootcustomelementregistry;
- shadowrootslotassignmentHTMLTemplateElementshadowrootmode;
shadowrootdelegatesfocus;
- shadowrootslotassignmentshadowrootclonable;
- shadowrootserializable;
- shadowrootcustomelementregistry;
+ shadowrootslotassignment;
+ shadowrootclonable;
+ shadowrootserializable;
+ shadowrootcustomelementregistry
HTMLTemplateElementshadowrootmode;
shadowrootdelegatesfocus;
- shadowrootslotassignment;
- shadowrootclonable;
- shadowrootserializable;
- shadowrootcustomelementregistryshadowrootslotassignment;
+ shadowrootclonable;
+ shadowrootserializable;
+ shadowrootcustomelementregistry
HTMLTemplateElement