[whatwg/dom] Treat fragment parser documents as not connected (PR #1474)

<!--
Thank you for contributing to the DOM Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.

When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.

If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->

Matching the behaviour of engines. For: https://github.com/whatwg/html/issues/11023, but needs a small patch in HTML spec also, which I will raise if directionally this is okay.

- [x] At least two implementers are interested (and none opposed):
   * Chromium (already implements)
   * Webkit (already implements)
   * Firefox (already implements)
- [x] [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/blob/0d0249113dc429fbbb4fce7778caeceae0466739/domparsing/createContextualFragment.html#L85
   * https://github.com/web-platform-tests/wpt/blob/0d0249113dc429fbbb4fce7778caeceae0466739/html/semantics/forms/the-input-element/radio-disconnected-group-owner.html#L186
- [x] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: N/A
   * Gecko: N/A
   * WebKit: N/A
   * Deno (only for aborting and events): …
   * Node.js (only for aborting and events): …
- [x] [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/1474

-- Commit Summary --

  * Treat fragment parser documents as not connected

-- File Changes --

    M dom.bs (13)

-- Patch Links --

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

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

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

Received on Wednesday, 24 June 2026 15:21:57 UTC