mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Unify report_validity for form associated elements
This function was implemented in a few classes but is a common element in all form associated elements and the functionality should be there. With these minimal changes we get to implement 4 idl functions for free.
This commit is contained in:
Notes:
github-actions[bot]
2025-08-29 18:29:11 +00:00
Author: https://github.com/tete17 Commit: https://github.com/LadybirdBrowser/ladybird/commit/44053ed3c29 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6024 Reviewed-by: https://github.com/tcl3 ✅
@@ -245,12 +245,6 @@ bool HTMLTextAreaElement::check_validity()
|
||||
return check_validity_steps();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-reportvalidity
|
||||
bool HTMLTextAreaElement::report_validity()
|
||||
{
|
||||
return report_validity_steps();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-textarea-maxlength
|
||||
WebIDL::Long HTMLTextAreaElement::max_length() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user