From 36be0c4ee246064c1d57475da1de1dbacc5a2826 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Sat, 7 Jan 2023 19:54:00 +0900 Subject: [PATCH] events: change status of `event.srcElement` to legacy `event.srcElement` is described as legacy in spec. Refs: https://dom.spec.whatwg.org/#interface-event PR-URL: https://github.com/nodejs/node/pull/46085 Reviewed-By: Darshan Sen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Antoine du Hamel --- doc/api/events.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/events.md b/doc/api/events.md index ac9f965c771652..39d23ffb3abf66 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -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`. @@ -2160,6 +2162,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