LibWeb: Implement 'no-validate state' concept

This commit is contained in:
edvwib 2025-05-04 16:25:02 +02:00 committed by Tim Ledbetter
commit 8ca956e6f1
Notes: github-actions[bot] 2025-07-07 19:15:00 +00:00
7 changed files with 109 additions and 5 deletions

View file

@ -110,6 +110,9 @@ public:
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fv-valid
bool satisfies_its_constraints() const;
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fs-novalidate
bool novalidate_state() const;
// https://html.spec.whatwg.org/multipage/form-control-infrastructure/#definitions
virtual bool suffering_from_being_missing() const { return false; }
virtual bool suffering_from_a_type_mismatch() const { return false; }