[whatwg/dom] Add MutationObserverInit.parseEndChildList and signal parse end (PR #1532)

Add `MutationObserverInit`'s `parseEndChildList` option and export "signal parse end" for `Element` and `ShadowRoot` targets, queuing an empty `"childList"` `MutationRecord` (with `previousSibling` set to `target`'s last child) when parsing finishes unless a `"childList"` record for `target` is already queued.

Tests: https://github.com/web-platform-tests/wpt/pull/65489.
Part of whatwg/html#13198.

- [ ] At least two implementers are interested (and none opposed):
   * Chromium
   * Gecko (https://github.com/whatwg/html/issues/13198)
   * WebKit: …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * https://github.com/web-platform-tests/wpt/pull/65489
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***

### :boom: Error: 422 Unprocessable Entity :boom: ###

[PR Preview](https://github.com/specinfra/pr-preview#pr-preview) failed to build. _(Last tried on Nov 19, 2026, 10:07 PM UTC)_.

<details>
<summary>More</summary>


PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

:rotating_light: [Spec Generator](https://www.w3.org/publications/spec-generator/) - Spec Generator is the web service used to build bikeshed/ReSpec specs

:link: [Related URL](https://www.w3.org/publications/spec-generator/?type=bikeshed-spec&output=html&url=https%3A%2F%2Fraw.githubusercontent.com%2Fwhatwg%2Fdom%2Fd125184b7a754c5d5825fb0b78658a59dd6353e5%2Fdom.bs&force=1&md-status=LS-PR&md-Text-Macro=PR-NUMBER%201532)

**Error output:**

```json
[
    {
        "lineNum": "4373:1",
        "messageType": "fatal",
        "text": "Algorithm container has no name, and there are too many <dfn>s to choose which to infer a name from. Please set the algorithm='name here' attribute."
    },
    {
        "lineNum": "4472:1",
        "messageType": "fatal",
        "text": "Algorithm container has no name, and there are too many <dfn>s to choose which to infer a name from. Please set the algorithm='name here' attribute."
    },
    {
        "lineNum": null,
        "messageType": "fatal",
        "text": "Multiple declarations of the '' algorithm."
    },
    {
        "lineNum": null,
        "messageType": "failure",
        "text": "Did not generate, due to errors exceeding the allowed error level."
    }
]
```

_This seems to be an issue with the [Spec Generator](https://www.w3.org/publications/spec-generator/) service. PR Preview doesn't manage this service and so has no control over it. If you've identified an issue with it, you can [report the issue to the maintainers of Spec Generator](https://github.com/w3c/spec-generator/issues/new) directly. Please be courteous. Thank you!_

_If you don't have enough information above to solve the error by yourself or if the issue doesn't seem related to Spec Generator, you can [file an issue with PR Preview](https://github.com/specinfra/pr-preview/issues/new?title=Unidentified%20Error&body=See%20whatwg/dom%231532.)._

</details>

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

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

-- Commit Summary --

  * Add MutationObserverInit.parseEndChildList and signal parse end

-- File Changes --

    M dom.bs (64)

-- Patch Links --

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

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

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

Received on Thursday, 19 November 2026 22:07:45 UTC