-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Demix onselectstart/onselectionchange from GlobalEventHandlers #18106
Conversation
Preview URLs
FlawsNote! 4 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
URL:
URL:
URL:
External URLsURL: No new external URLs URL: No new external URLs URL: No new external URLs URL: URL: No new external URLs URL: No new external URLs URL:
URL: No new external URLs URL: No new external URLs (this comment was updated 2022-07-11 17:15:50.808623) |
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.
For the moment I have a few questions to help my understanding here.
Once they are answered I will do a formal review. Marking as Request changes so that I don't merge by error meanwhile.
files/en-us/_redirects.txt
Outdated
@@ -8147,6 +8147,8 @@ | |||
/en-US/docs/Web/API/GlobalEventHandlers/onpointerdown/drag /en-US/docs/Web/API/GlobalEventHandlers/ondrag | |||
/en-US/docs/Web/API/GlobalEventHandlers/onreset /en-US/docs/Web/API/HTMLFormElement/reset_event | |||
/en-US/docs/Web/API/GlobalEventHandlers/onresize /en-US/docs/Web/API/Window/resize_event | |||
/en-US/docs/Web/API/GlobalEventHandlers/onselectionchange /en-US/docs/Web/API/Document/selectionchange_event |
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.
I would suggest redirecting to the event on Element, that'll be the most common one people deal with.
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.
Huh, wait, I thought I was commenting on the securitypolicyviolation event here. For selectionchange I don't know.
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.
I pointed it to HTMLInputElement
, which seems like the most likely interface that users would want to check out!
This PR demixes the
onselectstart
andonselectionchange
event handlers from the GlobalEventHandlers mixin. Related BCD PR: mdn/browser-compat-data#16359