From 4f896a70b254c3d485ba8e546a5f38673dcb70bd Mon Sep 17 00:00:00 2001
From: Yu Han
If the open flag is set and shadow's mode is
not "open
", then return null.
If the shadow's slot assignment is set to "manual
",
- return the associated slot in shadow where the slottable is
- assigned
,
- otherwise return null.
If the shadow's slot assignment is set to "manual
", then:
Let manuallyAssignedNodes be nodes that are
+ assigned
+ to a slot in shadow's descendants.
If nodeSlotMap doesn't exists, let nodeSlotMap be an empty map.
For each node in manuallyAssignedNodes, set nodeSlotMap[node] + to slot.
Set manuallyAssignedNodes to empty list.
If nodeSlotMap[slottable] exists, then return nodeSlotMap[slottable].
Return null.
Return the first slot in tree order in shadow's descendants whose name is slottable's @@ -5716,9 +5730,9 @@ invoked, must return a new {{DocumentFragment}} node whose no [Exposed=Window] interface ShadowRoot : DocumentFragment { readonly attribute ShadowRootMode mode; + readonly attribute SlotAssignmentMode slotAssignment; readonly attribute Element host; attribute EventHandler onslotchange; - readonly attribute SlotAssignmentMode slotAssignment; }; enum ShadowRootMode { "open", "closed" }; @@ -5739,7 +5753,7 @@ It is initially set to false.
consequences for innerHTML. -->Shadow roots have an associated slot assignment
-("manual
" or "auto
"), whose default value is "auto
"
manual
" or "auto
"), whose default value is "auto
".
A shadow root's get the parent algorithm, given an event, returns null if event's composed flag is unset and shadow root is the