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
commit 38a3e28799
Notes: sideshowbarker 2024-07-17 18:23:22 +09:00
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; }