mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
d4a890080d
NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
#import <FileAPI/Blob.idl>
|
|
#import <FileAPI/File.idl>
|
|
// FIXME: This #import currently gives the following error after XHR/FormData.idl was #imported in Fetch/BodyInit.idl:
|
|
// "LibWeb/HTML/Window.idl:114: error: Mixin 'WindowOrWorkerGlobalScope' was never defined."
|
|
// XHR/FormData.idl needs to be #imported in Fetch/BodyInit.idl while removing #import HTML/HTMLFormElement.idl
|
|
// currently makes no difference.
|
|
// #import <HTML/HTMLFormElement.idl>
|
|
|
|
typedef (File or USVString) FormDataEntryValue;
|
|
|
|
// https://xhr.spec.whatwg.org/#interface-formdata
|
|
[Exposed=Window]
|
|
interface FormData {
|
|
constructor(optional HTMLFormElement form);
|
|
|
|
undefined append(USVString name, USVString value);
|
|
undefined append(USVString name, Blob blobValue, optional USVString filename);
|
|
undefined delete(USVString name);
|
|
// FIXME: The BindingsGenerator is not able to resolve the Variant's visit for FormDataEntryValue when
|
|
// the return value for one function returns an optional FormDataEntryValue while the others does not.
|
|
(File or USVString)? get(USVString name);
|
|
sequence<FormDataEntryValue> getAll(USVString name);
|
|
boolean has(USVString name);
|
|
undefined set(USVString name, USVString value);
|
|
undefined set(USVString name, Blob blobValue, optional USVString filename);
|
|
iterable<USVString, FormDataEntryValue>;
|
|
};
|