LibWeb: Implement setCustomValidity IDL attribute

This commit is contained in:
Psychpsyo 2025-02-17 20:50:56 +01:00 committed by Andrew Kaster
parent 0926720c2a
commit a8004a77bb
Notes: github-actions[bot] 2025-02-18 17:18:11 +00:00
12 changed files with 29 additions and 24 deletions

View file

@ -2457,13 +2457,6 @@ WebIDL::ExceptionOr<bool> HTMLInputElement::report_validity()
return true;
}
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-cva-setcustomvalidity
void HTMLInputElement::set_custom_validity(String const& error)
{
dbgln("(STUBBED) HTMLInputElement::set_custom_validity(error={}). Called on: {}", error, debug_description());
return;
}
Optional<ARIA::Role> HTMLInputElement::default_role() const
{
// http://wpt.live/html-aam/roles-dynamic-switch.tentative.window.html "Disconnected <input type=checkbox switch>"