Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Only when setAttribute is called directly on the element, does libdom raise a DOMAttrModified event (which MutationObserver uses).

From what I can tell, libdom's element set attribute does rely on the underlying attribute set value, so the behavior should be pretty close, it just does extra things on top of that.

Only when setAttribute is called directly on the element, does libdom raise
a `DOMAttrModified` event (which MutationObserver uses).

From what I can tell, libdom's element set attribute _does_ rely on the
underlying attribute set value, so the behavior should be pretty close, it just
does extra things on top of that.
@karlseguin karlseguin merged commit 04e59c6 into main Jul 8, 2025
10 checks passed
@karlseguin karlseguin deleted the set_attribute_value branch July 8, 2025 00:14
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants