From 9d70f5135614b8fa0ba4e1322ac114587b959eb5 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Wed, 9 Jan 2019 18:57:35 +0800 Subject: Implement formdata event --- components/script/dom/webidls/FormDataEvent.webidl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 components/script/dom/webidls/FormDataEvent.webidl (limited to 'components/script/dom/webidls/FormDataEvent.webidl') diff --git a/components/script/dom/webidls/FormDataEvent.webidl b/components/script/dom/webidls/FormDataEvent.webidl new file mode 100644 index 00000000000..d34f57b3a09 --- /dev/null +++ b/components/script/dom/webidls/FormDataEvent.webidl @@ -0,0 +1,14 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +// https://html.spec.whatwg.org/multipage/#the-formdataevent-interface +[Exposed=Window, + Constructor(DOMString type, optional FormDataEventInit eventInitDict)] +interface FormDataEvent : Event { + readonly attribute FormData formData; +}; + +dictionary FormDataEventInit : EventInit { + /*required*/ FormData formData; +}; -- cgit v1.2.3