2018-09-13 20:04:55 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-12-11 18:09:56 +00:00
|
|
|
/* 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 http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://xhr.spec.whatwg.org
|
|
|
|
*/
|
|
|
|
|
2016-07-14 07:01:31 +00:00
|
|
|
typedef (Blob or Directory or USVString) FormDataEntryValue;
|
2015-01-29 01:04:28 +00:00
|
|
|
|
2019-09-12 11:01:17 +00:00
|
|
|
[Exposed=(Window,Worker)]
|
2012-12-11 18:09:56 +00:00
|
|
|
interface FormData {
|
2019-09-12 11:01:17 +00:00
|
|
|
[Throws]
|
2023-02-02 12:26:50 +00:00
|
|
|
constructor(optional HTMLFormElement form, optional HTMLElement? submitter = null);
|
2019-09-12 11:01:17 +00:00
|
|
|
|
2015-12-04 21:15:46 +00:00
|
|
|
[Throws]
|
2022-09-21 07:44:58 +00:00
|
|
|
undefined append(USVString name, Blob value, optional USVString filename);
|
2015-12-04 21:15:46 +00:00
|
|
|
[Throws]
|
2022-09-21 07:44:58 +00:00
|
|
|
undefined append(USVString name, USVString value);
|
|
|
|
undefined delete(USVString name);
|
2015-01-29 01:04:28 +00:00
|
|
|
FormDataEntryValue? get(USVString name);
|
|
|
|
sequence<FormDataEntryValue> getAll(USVString name);
|
|
|
|
boolean has(USVString name);
|
2015-12-04 21:15:46 +00:00
|
|
|
[Throws]
|
2022-09-21 07:44:58 +00:00
|
|
|
undefined set(USVString name, Blob value, optional USVString filename);
|
2015-12-04 21:15:46 +00:00
|
|
|
[Throws]
|
2022-09-21 07:44:58 +00:00
|
|
|
undefined set(USVString name, USVString value);
|
2015-10-20 02:06:00 +00:00
|
|
|
iterable<USVString, FormDataEntryValue>;
|
2013-06-19 14:24:37 +00:00
|
|
|
};
|