-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
events: change status of event.srcElement
to legacy
#46085
events: change status of event.srcElement
to legacy
#46085
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs to start with a doc-deprecation, like - #41872.
Also, deprecation != deletion, so even if this gets deprecated, I don't think it has to be removed altogether unless there's a real need.
28415d3
to
1b33fbc
Compare
srcElement
from Eventevent.srcElement
@RaisinTen Thank you for kind explanation. Applied doc-deprecation instead of delete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @nodejs/events PTAL
@deokjinkim could you also update the PR description? It still says that srcElement is being removed. |
Probably |
1b33fbc
to
4f8963d
Compare
Updated the PR description. Thank you for guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
event.srcElement is a legacy feature (according to the spec).
It's just a filler for spec compliance in Node.js since we don't have any event targets that do event propagation.
I seriously doubt that it'd ever be removed so I don't think we should deprecate it which implies removal until the spec does.
(That said, thank you for working on this!) |
17494ff
to
b933185
Compare
event.srcElement
event.srcElement
to legacy
`event.srcElement` is described as legacy in spec. Refs: https://dom.spec.whatwg.org/#interface-event
b933185
to
834c2b3
Compare
Landed in 513c151 |
`event.srcElement` is described as legacy in spec. Refs: https://dom.spec.whatwg.org/#interface-event PR-URL: nodejs#46085 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
`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>
`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>
`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>
event.srcElement
is described as legacy in spec.Refs: https://dom.spec.whatwg.org/#interface-event