-
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
No information about "cancel" event on HTMLInputElement page #31014
Comments
As far as I remember, this is under https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/cancel_event
|
Indeed, there's a larger discussion about where this should live in #30946 |
Related issue on BCD open here: mdn/browser-compat-data#21585 |
Hello @Cipscis, pinging to check if you'd be interested in opening a PR as per the approach proposed in #30946 (comment). |
I notice #29639, which tend to add the This might be a unexpected fix and lack of discussion |
Related: #31910 |
So is the conclusion to keep the page at |
The conclusion from #30946 was to keep the event with the defining interface I agree with the proposal in #30946 (comment), that is:
|
I'm not entirely sure if documenting events in the HTML reference is a good idea since you are almost always listening for events in JS instead of HTML, but if we already have that precedent it sounds reasonable. |
I, by chance, cycled back to this issue. I strongly believe the page move in #29639 should be reverted and we should have separate |
👍 Agree. I think I've made a mistake, therefore we do really need these two pages to be separated. |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
What specific section or headline is this issue about?
Events
What information was incorrect, unhelpful, or incomplete?
The "cancel" event for the HTMLInputElement, which is fired when a picker for an input element with type "file" is cancelled without the value being changed, is not mentioned anywhere on the HTMLInputElement page.
What did you expect to see?
The HTMLInputElement page should mention the "cancel" event, and link to its documentation.
Do you have any supporting links, references, or citations?
The "cancel" event for
<input type="file">
elements was added to the HTML standard in July 2021: whatwg/html#6735HTML spec - cancel event
HTML spec - Common input element APIs
This feature has been supported by all modern browsers since May 2023. According to CanIUse, it currently has 83.62% global browser support. Support for this feature is already included in mdn/browser-compat-data and displays on the HTMLInputElement page.
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: