[whatwg/dom] Update an attribute's node document (PR #1360)

When an attribute is appended to an element or is replacing an existing attribute, we need to ensure that its node document remains accurate.

Fixes #1359.


<!--
    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.
-->
***
<a href="https://whatpr.org/dom/1360.html" title="Last updated on Feb 18, 2025, 4:57 PM UTC (d38f128)">Preview</a> | <a href="https://whatpr.org/dom/1360/cbf4c0d...d38f128.html" title="Last updated on Feb 18, 2025, 4:57 PM UTC (d38f128)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Update an attribute's node document

-- File Changes --

    M dom.bs (10)

-- Patch Links --

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

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

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

Received on Tuesday, 18 February 2025 16:57:23 UTC