FormData.idl 999 B

1234567891011121314151617181920212223
  1. #import <FileAPI/Blob.idl>
  2. #import <FileAPI/File.idl>
  3. #import <HTML/HTMLFormElement.idl>
  4. typedef (File or USVString) FormDataEntryValue;
  5. // https://xhr.spec.whatwg.org/#interface-formdata
  6. [Exposed=Window, UseNewAKString]
  7. interface FormData {
  8. constructor(optional HTMLFormElement form);
  9. undefined append(USVString name, USVString value);
  10. undefined append(USVString name, Blob blobValue, optional USVString filename);
  11. undefined delete(USVString name);
  12. // FIXME: The BindingsGenerator is not able to resolve the Variant's visit for FormDataEntryValue when
  13. // the return value for one function returns an optional FormDataEntryValue while the others does not.
  14. (File or USVString)? get(USVString name);
  15. sequence<FormDataEntryValue> getAll(USVString name);
  16. boolean has(USVString name);
  17. undefined set(USVString name, USVString value);
  18. undefined set(USVString name, Blob blobValue, optional USVString filename);
  19. iterable<USVString, FormDataEntryValue>;
  20. };