Set copy's shadow root's declarative @@ -6553,6 +6554,7 @@ interface ShadowRoot : DocumentFragment { readonly attribute boolean clonable; readonly attribute boolean serializable; readonly attribute Element host; + attribute DOMString? referenceTarget; attribute EventHandler onslotchange; }; @@ -6590,6 +6592,9 @@ It is initially set to false.
Shadow roots have an associated serializable (a boolean). It is initially set to false.
+Shadow roots have an associated reference target +(null or a string). It is initially set to null.
+Shadow roots have an associated custom element registry (null or a {{CustomElementRegistry}} object). It is initially null.
@@ -6628,6 +6633,10 @@ null if event's composed flag is unset and shadow rooThe host getter steps are to return
this's host.
+
The referenceTarget getter steps are to return
+this's reference target. The {{ShadowRoot/referenceTarget}} setter
+steps are to set this's reference target to the given value.
+
The onslotchange attribute is an
@@ -6762,6 +6771,7 @@ dictionary ShadowRootInit {
SlotAssignmentMode slotAssignment = "named";
boolean clonable = false;
boolean serializable = false;
+ DOMString? referenceTarget = null;
CustomElementRegistry? customElementRegistry;
};
@@ -7738,7 +7748,8 @@ are:
init["{{ShadowRootInit/mode}}"], init["{{ShadowRootInit/clonable}}"],
init["{{ShadowRootInit/serializable}}"],
init["{{ShadowRootInit/delegatesFocus}}"],
- init["{{ShadowRootInit/slotAssignment}}"], and registry.
+ init["{{ShadowRootInit/slotAssignment}}"], and
+ init["{{ShadowRootInit/referenceTarget}}"], and registry.
Return this's shadow root. @@ -7748,7 +7759,8 @@ are:
To attach a shadow root, given an element element, a string mode, a boolean clonable, a boolean serializable, a boolean delegatesFocus, a string -slotAssignment, and null or a {{CustomElementRegistry}} object registry: +slotAssignment, null or a string referenceTarget, and null or a +{{CustomElementRegistry}} object registry:
If element's namespace is not the HTML namespace, @@ -7822,6 +7834,8 @@ a boolean serializable, a boolean delegatesFocus, a string
Set shadow's serializable to serializable. +
Set shadow's reference target to referenceTarget. +
Set shadow's custom element registry to registry.