Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for Mutation Events #784

Open
mfreed7 opened this issue Oct 3, 2024 · 1 comment
Open

Remove support for Mutation Events #784

mfreed7 opened this issue Oct 3, 2024 · 1 comment
Labels
focus-area-proposal Focus Area Proposal

Comments

@mfreed7
Copy link

mfreed7 commented Oct 3, 2024

Description

This proposal is to remove support for Mutation Events.

Mutation Events, including DOMSubtreeModified, DOMNodeInserted, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMNodeInsertedIntoDocument, and DOMCharacterDataModified, are quite bad for page performance, and also significantly increase the complexity of adding new features to the Web. These APIs were deprecated from the spec ( Spec: UI Events ) in 2011, and were replaced (in 2012) by the much better-behaved Mutation Observer API.

Please see this blog post (about Chrome’s work to remove support) for more detail:
https://developer.chrome.com/blog/mutation-events-deprecation

These events have been completely removed from the standards as of August, 2024. Chrome has disabled all of these events for all users, starting in M127 (July, 2024), and has encountered only a few bug reports. Chrome does have an Origin Trial and Enterprise Policy that will allow sites/organizations to opt themselves back in to the events, but those are scheduled to be end-dated in M135 (April 2025).

Specification

This was never a specified feature. There are peripheral mentions, such as the fire mutation events flag, but those don’t actually describe how the feature works. Indeed, see the polyfill documentation for some behavioral differences between browsers.

Additional Signals

Standards Positions

Tests

@mfreed7 mfreed7 added the focus-area-proposal Focus Area Proposal label Oct 3, 2024
@dandclark
Copy link
Contributor

The dom/historical.html test could be used, although we'd probably need to split the mutation events subtests out into another file since there are other unrelated failures:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

2 participants