- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 10 Jul 2026 02:14:19 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 10 July 2026 09:14:23 UTC
Which realm a node is created in was unspecified, so implementations disagreed when a node was created for a document whose relevant realm differed from the one running the algorithm (e.g. parsing, importing, or cloning into an adopted node's document).
This also makes the HTML parser initialize processing instructions, populating their attribute map as `createProcessingInstruction()` and the constructor already did.
Fixes #977.
Tests: https://github.com/web-platform-tests/wpt/pull/61212
A corresponding HTML change is needed to route the parser's node creation through these algorithms; it will be filed as a follow-up.
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/dom/pull/1491
-- Commit Summary --
* Create nodes in the realm of the document they are created for
-- File Changes --
M dom.bs (281)
-- Patch Links --
https://github.com/whatwg/dom/pull/1491.patch
https://github.com/whatwg/dom/pull/1491.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1491
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1491@github.com>
Received on Friday, 10 July 2026 09:14:23 UTC