1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:14:58 +00:00

LibWeb: Add input element valueAsNumber

This commit is contained in:
Bastiaan van der Plaat 2023-10-04 22:40:31 +02:00 committed by Andreas Kling
parent d290569535
commit d5ca8209bf
3 changed files with 38 additions and 2 deletions

View file

@ -94,6 +94,9 @@ public:
// https://html.spec.whatwg.org/multipage/input.html#update-the-file-selection
void update_the_file_selection(JS::NonnullGCPtr<FileAPI::FileList>);
WebIDL::ExceptionOr<double> value_as_number() const;
WebIDL::ExceptionOr<void> set_value_as_number(double value);
WebIDL::ExceptionOr<bool> check_validity();
WebIDL::ExceptionOr<bool> report_validity();
void set_custom_validity(String const&);