From fd625b786cca04cc7f897712db83431f24a02be3 Mon Sep 17 00:00:00 2001 From: wbamberg Date: Wed, 15 Nov 2023 15:34:55 -0800 Subject: [PATCH] xhr->fetch in FormDataEvent --- files/en-us/web/api/formdataevent/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/formdataevent/index.md b/files/en-us/web/api/formdataevent/index.md index 2237951458eff06..e6b273aed3bc1bb 100644 --- a/files/en-us/web/api/formdataevent/index.md +++ b/files/en-us/web/api/formdataevent/index.md @@ -9,7 +9,7 @@ browser-compat: api.FormDataEvent The **`FormDataEvent`** interface represents a [`formdata` event](/en-US/docs/Web/API/HTMLFormElement/formdata_event) — such an event is fired on an {{domxref("HTMLFormElement")}} object after the entry list representing the form's data is constructed. This happens when the form is submitted, but can also be triggered by the invocation of a {{domxref("FormData.FormData", "FormData()")}} constructor. -This allows a {{domxref("FormData")}} object to be quickly obtained in response to a `formdata` event firing, rather than needing to put it together yourself when you wish to submit form data via a method like {{domxref("XMLHttpRequest")}} (see [Using FormData objects](/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)). +This allows a {{domxref("FormData")}} object to be quickly obtained in response to a `formdata` event firing, rather than needing to put it together yourself when you wish to submit form data via a method like {{domxref("fetch()")}} (see [Using FormData objects](/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)). {{InheritanceDiagram}} @@ -74,7 +74,7 @@ formElem.addEventListener("formdata", (e) => { ## See also -- {{domxref("XMLHTTPRequest")}} +- {{domxref("fetch()")}} - {{domxref("FormData")}} - [Using FormData objects](/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects) - {{HTMLElement("Form")}}