- From: smaug---- <notifications@github.com>
- Date: Wed, 15 Jan 2025 14:49:35 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1307/review/2554210805@github.com>
@smaug---- commented on this pull request. > + <a for=traversal>root</a>'s <a for=Node>node document</a> is <var>node</var>'s + <a for=Node>node document</a>, run the <a><code>NodeIterator</code> pre-remove steps</a> given + <var>node</var> and <var>iterator</var>. + + <li><p>Let <var>oldPreviousSibling</var> be <var>node</var>'s <a>previous sibling</a>. + + <li><p>Let <var>oldNextSibling</var> be <var>node</var>'s <a for=tree>next sibling</a>. + + <li><p><a for=set>Remove</a> <var>node</var> from <var>oldParent</var>'s <a for=tree>children</a>. + + <li><p>If <var>node</var> is <a for=slottable>assigned</a>, then run <a>assign slottables</a> for + <var>node</var>'s <a>assigned slot</a>. + + <li><p>If <var>oldParent</var>'s <a for=tree>root</a> is a <a for=/>shadow root</a>, and + <var>oldParent</var> is a <a>slot</a> whose <a for=slot>assigned nodes</a> is the empty list, then + run <a>signal a slot change</a> for <var>oldParent</var>. Aren't we missing the steps needed to track the case when slot element itself if moving. In the "remove" algorithm step 14. And I didn't immediately see tests for moving slots. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1307#pullrequestreview-2554210805 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1307/review/2554210805@github.com>
Received on Wednesday, 15 January 2025 22:49:39 UTC