Skip to content

Commit

Permalink
events: change status of event.srcElement to legacy
Browse files Browse the repository at this point in the history
`event.srcElement` is described as legacy in spec.

Refs: https://dom.spec.whatwg.org/#interface-event
PR-URL: #46085
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
deokjinkim authored and RafaelGSS committed Jan 20, 2023
1 parent f4559a1 commit 5304c89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1854,6 +1854,8 @@ This is not used in Node.js and is provided purely for completeness.
added: v14.5.0
-->

> Stability: 3 - Legacy: Use [`event.target`][] instead.
* Type: {EventTarget} The `EventTarget` dispatching the event.

Alias for `event.target`.
Expand Down Expand Up @@ -2164,6 +2166,7 @@ to the `EventTarget`.
[`emitter.listenerCount()`]: #emitterlistenercounteventname
[`emitter.removeListener()`]: #emitterremovelistenereventname-listener
[`emitter.setMaxListeners(n)`]: #emittersetmaxlistenersn
[`event.target`]: #eventtarget
[`events.defaultMaxListeners`]: #eventsdefaultmaxlisteners
[`fs.ReadStream`]: fs.md#class-fsreadstream
[`net.Server`]: net.md#class-netserver
Expand Down

0 comments on commit 5304c89

Please sign in to comment.