mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 15:30:09 +00:00
LibWeb: Implement checkValidity() for HTMLSelectElement
This change adds an implementation of the checkValidity() method for HTMLSelectElement.
This commit is contained in:
parent
5331571fdc
commit
db7aa68340
Notes:
github-actions[bot]
2025-02-26 14:08:38 +00:00
Author: https://github.com/sideshowbarker
Commit: db7aa68340
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3700
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 18 additions and 10 deletions
|
@ -702,6 +702,12 @@ bool HTMLSelectElement::will_validate()
|
|||
return is_candidate_for_constraint_validation();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-checkvalidity
|
||||
bool HTMLSelectElement::check_validity()
|
||||
{
|
||||
return check_validity_steps();
|
||||
}
|
||||
|
||||
bool HTMLSelectElement::is_focusable() const
|
||||
{
|
||||
return enabled();
|
||||
|
|
|
@ -62,6 +62,7 @@ public:
|
|||
Vector<GC::Root<HTMLOptionElement>> list_of_options() const;
|
||||
|
||||
bool will_validate();
|
||||
bool check_validity();
|
||||
|
||||
// ^EventTarget
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute:the-select-element
|
||||
|
|
|
@ -34,7 +34,7 @@ interface HTMLSelectElement : HTMLElement {
|
|||
readonly attribute boolean willValidate;
|
||||
readonly attribute ValidityState validity;
|
||||
[FIXME] readonly attribute DOMString validationMessage;
|
||||
[FIXME] boolean checkValidity();
|
||||
boolean checkValidity();
|
||||
[FIXME] boolean reportValidity();
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue