1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

LibWeb: Stub out a few form validation and selection methods

This commit is contained in:
Elisée Maurer 2023-03-04 23:58:25 +01:00 committed by Linus Groh
parent 23d31ac11d
commit 38a3e28799
6 changed files with 57 additions and 0 deletions

View file

@ -40,6 +40,9 @@ public:
JS::NonnullGCPtr<DOM::HTMLCollection> elements() const;
unsigned length() const;
WebIDL::ExceptionOr<bool> check_validity();
WebIDL::ExceptionOr<bool> report_validity();
// https://www.w3.org/TR/html-aria/#el-form
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::form; }