From a684e57d70e8a78fa906d3c120761dcb6d17a6dc Mon Sep 17 00:00:00 2001 From: Mark Hanna Date: Tue, 12 Dec 2023 20:50:07 +1300 Subject: [PATCH 1/2] Add link to cancel event to HTMLInputElement page --- files/en-us/web/api/htmlinputelement/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/en-us/web/api/htmlinputelement/index.md b/files/en-us/web/api/htmlinputelement/index.md index e3a9ef114097dc9..7ef692145decaaf 100644 --- a/files/en-us/web/api/htmlinputelement/index.md +++ b/files/en-us/web/api/htmlinputelement/index.md @@ -295,6 +295,8 @@ Listen to these events using [`addEventListener()`](/en-US/docs/Web/API/EventTar - [`input`](/en-US/docs/Web/API/HTMLElement/input_event) - : Fires when the `value` of an {{HTMLElement("input")}}, {{HTMLElement("select")}}, or {{HTMLElement("textarea")}} element has been changed. Note that this is actually fired on the {{domxref("HTMLElement")}} interface and also applies to [`contenteditable`](/en-US/docs/Web/HTML/Global_attributes/contenteditable) elements, but we've listed it here because it is most commonly used with form input elements. +- [`cancel`](/en-US/docs/Web/API/HTMLElement/cancel_event) + - : Fires when the file prompt of an {{HTMLElement("input")}} with `type="file"` is dismissed without a file being selected. Note that this is actually fired on the {{domxref("HTMLElement")}} interface, but we've listed it here because form input elements are one of the few types of element it is used with. - [`invalid`](/en-US/docs/Web/API/HTMLInputElement/invalid_event) - : Fired when an element does not satisfy its constraints during constraint validation. - [`search`](/en-US/docs/Web/API/HTMLInputElement/search_event) {{Non-standard_Inline}} From ca18c38c41690913d5f2ddafc89b7229f7ce0a6d Mon Sep 17 00:00:00 2001 From: Mark Hanna Date: Fri, 15 Dec 2023 19:30:36 +1300 Subject: [PATCH 2/2] Update files/en-us/web/api/htmlinputelement/index.md Use macros Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> --- files/en-us/web/api/htmlinputelement/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/htmlinputelement/index.md b/files/en-us/web/api/htmlinputelement/index.md index 7ef692145decaaf..faf49941f785af5 100644 --- a/files/en-us/web/api/htmlinputelement/index.md +++ b/files/en-us/web/api/htmlinputelement/index.md @@ -295,7 +295,7 @@ Listen to these events using [`addEventListener()`](/en-US/docs/Web/API/EventTar - [`input`](/en-US/docs/Web/API/HTMLElement/input_event) - : Fires when the `value` of an {{HTMLElement("input")}}, {{HTMLElement("select")}}, or {{HTMLElement("textarea")}} element has been changed. Note that this is actually fired on the {{domxref("HTMLElement")}} interface and also applies to [`contenteditable`](/en-US/docs/Web/HTML/Global_attributes/contenteditable) elements, but we've listed it here because it is most commonly used with form input elements. -- [`cancel`](/en-US/docs/Web/API/HTMLElement/cancel_event) +- {{domxref("HTMLElement/cancel_event", "cancel")}} - : Fires when the file prompt of an {{HTMLElement("input")}} with `type="file"` is dismissed without a file being selected. Note that this is actually fired on the {{domxref("HTMLElement")}} interface, but we've listed it here because form input elements are one of the few types of element it is used with. - [`invalid`](/en-US/docs/Web/API/HTMLInputElement/invalid_event) - : Fired when an element does not satisfy its constraints during constraint validation.