LibWeb: Reference multipage spec for form element constraints

This commit is contained in:
Andrew Kaster 2025-02-05 17:03:11 -07:00 committed by Andrew Kaster
parent e0576f4790
commit adfb371e4f
Notes: github-actions[bot] 2025-02-06 00:36:20 +00:00

View file

@ -91,13 +91,13 @@ public:
// https://html.spec.whatwg.org/multipage/forms.html#concept-submit-button
virtual bool is_submit_button() const { return false; }
// https://html.spec.whatwg.org/#candidate-for-constraint-validation
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#candidate-for-constraint-validation
bool is_candidate_for_constraint_validation() const;
// https://html.spec.whatwg.org/#concept-fv-valid
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fv-valid
bool satisfies_its_constraints() const;
// https://html.spec.whatwg.org/#definitions
// 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; }
virtual bool suffering_from_a_pattern_mismatch() const { return false; }