Skip to content

Update an attribute's node document#1360

Merged
annevk merged 2 commits intomainfrom
annevk/attr-node-document
Feb 21, 2025
Merged

Update an attribute's node document#1360
annevk merged 2 commits intomainfrom
annevk/attr-node-document

Conversation

@annevk
Copy link
Copy Markdown
Member

@annevk annevk commented Feb 18, 2025

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.


Preview | Diff

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.
@domenic
Copy link
Copy Markdown
Member

domenic commented Feb 19, 2025

Can this be tested? jsdom doesn't implement this and I'm not aware of it failing any related tests.

Copy link
Copy Markdown
Contributor

@smaug---- smaug---- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, a test would be good. Given the recent findings in implementations and spec, I wouldn't be surprised if this is broken in various places.

annevk added a commit to web-platform-tests/wpt that referenced this pull request Feb 20, 2025
@annevk
Copy link
Copy Markdown
Member Author

annevk commented Feb 20, 2025

Created tests, no surprises in browsers.

annevk added a commit to web-platform-tests/wpt that referenced this pull request Feb 21, 2025
@annevk annevk merged commit b64559c into main Feb 21, 2025
@annevk annevk deleted the annevk/attr-node-document branch February 21, 2025 07:31
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 28, 2025
…estonly

Automatic update from web-platform-tests
DOM: test attribute's node document

For whatwg/dom#1360.

--

wpt-commits: 40dc07cac81f40bf4086c2c7fdd8a0b68fecbcd0
wpt-pr: 50835
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Mar 1, 2025
…estonly

Automatic update from web-platform-tests
DOM: test attribute's node document

For whatwg/dom#1360.

--

wpt-commits: 40dc07cac81f40bf4086c2c7fdd8a0b68fecbcd0
wpt-pr: 50835

UltraBlame original commit: 17457f3cb5175dc0f642fc00e937868eccb90acd
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Mar 1, 2025
…estonly

Automatic update from web-platform-tests
DOM: test attribute's node document

For whatwg/dom#1360.

--

wpt-commits: 40dc07cac81f40bf4086c2c7fdd8a0b68fecbcd0
wpt-pr: 50835

UltraBlame original commit: 17457f3cb5175dc0f642fc00e937868eccb90acd
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Mar 1, 2025
…estonly

Automatic update from web-platform-tests
DOM: test attribute's node document

For whatwg/dom#1360.

--

wpt-commits: 40dc07cac81f40bf4086c2c7fdd8a0b68fecbcd0
wpt-pr: 50835

UltraBlame original commit: 17457f3cb5175dc0f642fc00e937868eccb90acd
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 5, 2025
…estonly

Automatic update from web-platform-tests
DOM: test attribute's node document

For whatwg/dom#1360.

--

wpt-commits: 40dc07cac81f40bf4086c2c7fdd8a0b68fecbcd0
wpt-pr: 50835
glandium pushed a commit to mozilla-firefox/firefox that referenced this pull request Apr 1, 2025
…estonly

Automatic update from web-platform-tests
DOM: test attribute's node document

For whatwg/dom#1360.

--

wpt-commits: 40dc07cac81f40bf4086c2c7fdd8a0b68fecbcd0
wpt-pr: 50835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

setNamedItem doesn't adopt the attr node to the ownerDocument of the relevant element

3 participants