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
Notes: sideshowbarker 2024-07-17 18:23:22 +09:00
6 changed files with 57 additions and 0 deletions

View file

@ -258,6 +258,20 @@ unsigned HTMLFormElement::length() const
return elements()->length();
}
// https://html.spec.whatwg.org/multipage/forms.html#dom-form-checkvalidity
WebIDL::ExceptionOr<bool> HTMLFormElement::check_validity()
{
dbgln("(STUBBED) HTMLFormElement::check_validity(). Called on: {}", debug_description());
return true;
}
// https://html.spec.whatwg.org/multipage/forms.html#dom-form-reportvalidity
WebIDL::ExceptionOr<bool> HTMLFormElement::report_validity()
{
dbgln("(STUBBED) HTMLFormElement::report_validity(). Called on: {}", debug_description());
return true;
}
// https://html.spec.whatwg.org/multipage/forms.html#category-submit
ErrorOr<Vector<JS::NonnullGCPtr<DOM::Element>>> HTMLFormElement::get_submittable_elements()
{