Skip to content

Commit

Permalink
Add discouraged mutation events (#2518)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel D. Beck <[email protected]>
  • Loading branch information
captainbrosset and ddbeck authored Jan 14, 2025
1 parent e119eeb commit ce61d18
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions features/mutation-events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Mutation events
description: Mutation events like `DOMSubtreeModified`, `DOMNodeInserted`, or `DOMNodeRemoved` fire when DOM changes occur.
# The latest spec doesn't mention them at all anymore.
spec: https://w3c.github.io/uievents/
discouraged:
according_to:
- https://www.w3.org/TR/2024/WD-uievents-20240906/#legacy-mutationevent-events
alternatives:
- mutationobserver
compat_features:
- api.MutationEvent
- api.MutationEvent.attrChange
- api.MutationEvent.attrName
- api.MutationEvent.initMutationEvent
- api.MutationEvent.newValue
- api.MutationEvent.prevValue
- api.MutationEvent.relatedNode
18 changes: 18 additions & 0 deletions features/mutation-events.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated from: mutation-events.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
firefox: "1"
firefox_android: "4"
safari: "1"
safari_ios: "1"
compat_features:
- api.MutationEvent
- api.MutationEvent.attrChange
- api.MutationEvent.attrName
- api.MutationEvent.initMutationEvent
- api.MutationEvent.newValue
- api.MutationEvent.prevValue
- api.MutationEvent.relatedNode

0 comments on commit ce61d18

Please sign in to comment.