Skip to content

Commit 32a8a68

Browse files
committed
Fire slotchange events on the removal and insertion during moveBefore
1 parent f3f2ab2 commit 32a8a68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dom.bs

+7
Original file line numberDiff line numberDiff line change
@@ -2932,6 +2932,13 @@ JavaScript. These steps may queue tasks to do these things asynchronously, howev
29322932

29332933
<li><p><a for=set>Remove</a> <var>node</var> from <var>oldParent</var>'s <a for=tree>children</a>.
29342934

2935+
<li><p>If <var>node</var> is <a for=slottable>assigned</a>, then run <a>assign slottables</a> for
2936+
<var>node</var>'s <a>assigned slot</a>.
2937+
2938+
<li><p>If <var>oldParent</var>'s <a for=tree>root</a> is a <a for=/>shadow root</a>, and
2939+
<var>oldParent</var> is a <a>slot</a> whose <a for=slot>assigned nodes</a> is the empty list, then
2940+
run <a>signal a slot change</a> for <var>oldParent</var>.
2941+
29352942
<!-- Start insertion-related bookkeeping steps -->
29362943
<li>
29372944
<p>If <var>child</var> is non-null:

0 commit comments

Comments
 (0)