mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:04:59 +00:00
LibWeb: Stub out a few form validation and selection methods
This commit is contained in:
parent
23d31ac11d
commit
38a3e28799
6 changed files with 57 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue