Skip to content

Commit 834c2b3

Browse files
committed
events: change status of event.srcElement to legacy
`event.srcElement` is described as legacy in spec. Refs: https://dom.spec.whatwg.org/#interface-event
1 parent 9b1ed04 commit 834c2b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/events.md

+3
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,8 @@ This is not used in Node.js and is provided purely for completeness.
18521852
added: v14.5.0
18531853
-->
18541854

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

18571859
Alias for `event.target`.
@@ -2162,6 +2164,7 @@ to the `EventTarget`.
21622164
[`emitter.listenerCount()`]: #emitterlistenercounteventname
21632165
[`emitter.removeListener()`]: #emitterremovelistenereventname-listener
21642166
[`emitter.setMaxListeners(n)`]: #emittersetmaxlistenersn
2167+
[`event.target`]: #eventtarget
21652168
[`events.defaultMaxListeners`]: #eventsdefaultmaxlisteners
21662169
[`fs.ReadStream`]: fs.md#class-fsreadstream
21672170
[`net.Server`]: net.md#class-netserver

0 commit comments

Comments
 (0)