mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 14:40:18 +00:00
LibWeb: Unify check_validity for form associated elements
This commit is contained in:
parent
44053ed3c2
commit
af88a43e9a
Notes:
github-actions[bot]
2025-08-29 18:29:05 +00:00
Author: https://github.com/tete17
Commit: af88a43e9a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6024
Reviewed-by: https://github.com/tcl3 ✅
12 changed files with 14 additions and 25 deletions
|
@ -244,6 +244,13 @@ bool FormAssociatedElement::report_validity()
|
|||
return report_validity_steps();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-checkvalidity
|
||||
bool FormAssociatedElement::check_validity()
|
||||
{
|
||||
// The checkValidity() method, when invoked, must run the check validity steps on this element.
|
||||
return check_validity_steps();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#check-validity-steps
|
||||
bool FormAssociatedElement::check_validity_steps()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue