In Test 4 of the Quantity Spin Button Example Test Plan V25.12.16, 3 of the assertions are:
| Priority |
Assertion Phrase |
| SHOULD |
convey minimum value, '1' |
| SHOULD |
convey maximum value, '8' |
| MUST |
convey error message, 'Must be between 1 and 8' |
Because the error message for a spinner containing an invalid value should include the valid range of values, isn't setting the expectation that screen readers SHOULD convey min and max values in addition to the error message asking screen readers to generate output that is redundant and thus excessively verbose?
Put another way, if a screen reader is rendering a spinner where aria-invalid is true and an error message is present, shouldn't it be optional for the screen reader to convey the min and max values?
For example, in this spinner, the error message is:
Must be between 1 and 8
This error message contains the min and max so conveying the min and max in addition to the error message would be redundant.
For test 4 where aria-invalid is true, consider lowering the priority of the min and max assertions to 3 (MAY) as follows:
| Priority |
Assertion Phrase |
| MAY |
convey minimum value, '1' |
| MAY |
convey maximum value, '8' |
| MUST |
convey error message, 'Must be between 1 and 8' |
For reference, the definitions of MUST/SHOULD/MAY values for assertion priorities are in the glossary.
Test Setup
In Test 4 of the Quantity Spin Button Example Test Plan V25.12.16, 3 of the assertions are:
Because the error message for a spinner containing an invalid value should include the valid range of values, isn't setting the expectation that screen readers SHOULD convey min and max values in addition to the error message asking screen readers to generate output that is redundant and thus excessively verbose?
Put another way, if a screen reader is rendering a spinner where aria-invalid is true and an error message is present, shouldn't it be optional for the screen reader to convey the min and max values?
For example, in this spinner, the error message is:
This error message contains the min and max so conveying the min and max in addition to the error message would be redundant.
For test 4 where aria-invalid is true, consider lowering the priority of the min and max assertions to 3 (MAY) as follows:
For reference, the definitions of MUST/SHOULD/MAY values for assertion priorities are in the glossary.
Test Setup