[whatwg/dom] Run the children changed steps when moving (PR #1515)

The move algorithm did not run the children changed steps for either parent, so moving a node into or out of an element such as style or textarea did not update it, unlike in implementations. It now runs them for both, and passes them a boolean indicating whether they are called from move, so the HTML Standard can keep not running a script element when a child is moved into it, as implementations do.

- [ ] At least two implementers are interested (and none opposed):
   * WebKit, Chromium, and Gecko already notify both parents of a move, and don't run a script element when a child is moved into it.
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * [dom/nodes/moveBefore/script-move-before.html](https://wpt.fyi/results/dom/nodes/moveBefore/script-move-before.html) covers script elements.
   * … (style and textarea)
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: none needed
   * Deno (only for aborting and events): N/A
   * Node.js (only for aborting and events): N/A
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: N/A
- [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/1515

-- Commit Summary --

  * Run the children changed steps when moving

-- File Changes --

    M dom.bs (15)

-- Patch Links --

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

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

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

Received on Saturday, 24 October 2026 13:47:59 UTC