mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Stub out a few form validation and selection methods
This commit is contained in:
committed by
Linus Groh
parent
23d31ac11d
commit
38a3e28799
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/elisee Commit: https://github.com/SerenityOS/serenity/commit/38a3e28799 Pull-request: https://github.com/SerenityOS/serenity/pull/17920 Reviewed-by: https://github.com/linusg ✅
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user