#17928 closed defect (fixed)
dijit/form/ValidationTextBox prematurely sets "aria-invalid" attribute to true for required fields with empty values.
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.7.9 |
Component: | Dijit - Form | Version: | 1.9.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If you create a simple test page with a single dijit/form/ValidationTextBox as follows:
<div data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="required: true"></div>
You will see in the DOM that the "aria-invalid" attribute is set to "true" on the "focusNode" initially.
However, from the WAI-ARIA specification at http://www.w3.org/TR/wai-aria/states_and_properties#aria-invalid
It reads: "authors SHOULD NOT set the aria-invalid attribute on required widgets simply because the user has not yet entered data."
I am guessing we should not set "aria-invalid" to true until after the first "focus" and "blur" events have occurred.
Change History (6)
comment:1 Changed 7 years ago by
Milestone: | tbd → 1.9.4 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
comment:2 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 Changed 5 years ago by
Milestone: | 1.9.4 → 1.7.9 |
---|
Backported to 1.7.9 and 1.8.11 (in addition to 1.10.0 and 1.9.4)
Also happens with the "Favorite number" example in dijit/tests/form/test_validate.html