1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibWeb: Introduce the FormDataEvent interface

This commit is contained in:
Kenneth Myhra 2023-02-03 21:50:10 +01:00 committed by Linus Groh
parent d5b5b94a35
commit a6cdf6374f
6 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#import <DOM/Event.idl>
#import <XHR/FormData.idl>
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#the-formdataevent-interface
[Exposed=Window]
interface FormDataEvent : Event {
constructor(DOMString type, FormDataEventInit eventInitDict);
readonly attribute FormData formData;
};
dictionary FormDataEventInit : EventInit {
required FormData formData;
};