mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibWeb: Introduce the FormData interface from the XHR specification
This commit is contained in:
parent
b74d5a423d
commit
d5b5b94a35
9 changed files with 317 additions and 0 deletions
20
Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.h
Normal file
20
Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/XHR/FormData.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
struct Entry {
|
||||
String name;
|
||||
Variant<JS::NonnullGCPtr<FileAPI::File>, String> value;
|
||||
};
|
||||
|
||||
WebIDL::ExceptionOr<Entry> create_entry(JS::Realm& realm, String const& name, Variant<JS::NonnullGCPtr<FileAPI::Blob>, String> const& value, Optional<String> const& filename = {});
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue