mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibWeb: Stub out a few form validation and selection methods
This commit is contained in:
parent
23d31ac11d
commit
38a3e28799
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/elisee
Commit: 38a3e28799
Pull-request: https://github.com/SerenityOS/serenity/pull/17920
Reviewed-by: https://github.com/linusg ✅
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