Add XHR support for FormData

This commit is contained in:
Zhen Zhang 2016-08-08 20:55:26 +02:00
parent c420a870c1
commit 184b522230
13 changed files with 173 additions and 174 deletions

View file

@ -6,7 +6,7 @@
* https://xhr.spec.whatwg.org/#interface-formdata
*/
typedef (Blob or USVString) FormDataEntryValue;
typedef (File or USVString) FormDataEntryValue;
[Constructor(optional HTMLFormElement form),
Exposed=(Window,Worker)]
@ -17,6 +17,7 @@ interface FormData {
FormDataEntryValue? get(USVString name);
sequence<FormDataEntryValue> getAll(USVString name);
boolean has(USVString name);
void set(USVString name, FormDataEntryValue value);
void set(USVString name, USVString value);
void set(USVString name, Blob value, optional USVString filename);
// iterable<USVString, FormDataEntryValue>;
};

View file

@ -13,7 +13,7 @@
*/
// https://fetch.spec.whatwg.org/#bodyinit
typedef (Blob or /*BufferSource or FormData or */DOMString or URLSearchParams) BodyInit;
typedef (Blob or /*BufferSource or */ FormData or DOMString or URLSearchParams) BodyInit;
enum XMLHttpRequestResponseType {
"",