Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#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 5 years ago by bill

Milestone: tbd1.9.4
Owner: set to bill
Status: newassigned

Also happens with the "Favorite number" example in dijit/tests/form/test_validate.html

comment:2 Changed 5 years ago by Bill Keese <bill@…>

Resolution: fixed
Status: assignedclosed

In 0f25f89898792f97f6e3b5c15af1d62f5824ab70/dijit:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:3 Changed 5 years ago by Bill Keese <bill@…>

In 467a1e21899878f3fb9ec29ac1feb5df343ce684/dijit:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:4 Changed 4 years ago by Bill Keese <bill@…>

In 97fff6d/dijit:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:5 Changed 4 years ago by Bill Keese <bill@…>

In dba094d/dijit:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:6 Changed 4 years ago by bill

Milestone: 1.9.41.7.9

Backported to 1.7.9 and 1.8.11 (in addition to 1.10.0 and 1.9.4)

Note: See TracTickets for help on using tickets.