[whatwg/dom] Pass better parent/root information to (re)moving steps. (PR #1450)

For removing steps and moving steps, instead of passing only oldParent (which is null when the removed node is not the root of the removed subtree), pass both oldParent (never null) and isSubtreeRoot.

This is the DOM spec part of the fix for https://github.com/whatwg/html/issues/12098
For the HTML spec change see https://github.com/whatwg/html/pull/12144

- [X] At least two implementers are interested (and none opposed):
   * Chromium
   * Gecko (assuming https://github.com/whatwg/html/issues/12098#issuecomment-3872487261 is sufficient)
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * I think this *probably* doesn't need tests since previous implementors and test authors assumed that the spec said what this pair of PRs is updating it to actually say.
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
- [X] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: Not needed.
- [X] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1450

-- Commit Summary --

  * Pass better parent/root information to (re)moving steps.

-- File Changes --

    M dom.bs (11)

-- Patch Links --

https://github.com/whatwg/dom/pull/1450.patch
https://github.com/whatwg/dom/pull/1450.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1450
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1450@github.com>

Received on Monday, 9 February 2026 18:11:44 UTC