Input constraints used
foundational
Normative Text
Field constraints and conditions (required line length, date format, password format, etc.) are available.
Methods & best practices
- Method (HTML): to programmatically indicate, use the pattern attribute or write the information in a label; to visually indicate, add the requirements to the page near the input.
Best practice: the constraints remain persistent
Tests
This section is non-normative.
Procedure
For each input:
- Confirm it has a visual information that describes the constraint.
- Inspect the code and accessibility tree (when applicable) and confirm that the constraint is programmatically listed in the code and associated with the input.
Expected results
- #1 and #2 are true.
Tests
This content needs to be written.