content icon indicating copy to clipboard operation
content copied to clipboard

No information about "cancel" event on HTMLInputElement page

Open Cipscis opened this issue 1 year ago • 12 comments

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: https://github.com/whatwg/html/pull/6735

HTML 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

Cipscis avatar Dec 15 '23 00:12 Cipscis