Input constraints used
Core requirement
Field constraints and conditions (required line length, date format, password format, etc.) are available.
Methods
- HTML: To programmatically indicate, use the
patternattribute or write the information in a label; to visually indicate, add the requirements to the page near the input.
Best Practices
- The constraints remain persistent.
Tests
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.