WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: what is perceived when using Forms Mode

for

From: Tony Olivero
Date: Apr 11, 2013 3:32PM


Are you asking about an error that pops up only after the field is
blurred, not on page refresh or load? You could handle this in a
couple of ways to ensure screen readers see it.

1) as soon as the error condition is raised, bounce the focus back to
the erroring field and use aria-describedby in the input field to
associate it with the id of the error message span.

2) provide a link in the error message to correct the error; make this
link the text of the error message, set the destination to be the
field in error and make sure the link gets focused so the user doesn't
accidentally skip past it.

3) include the error message span in the label and position with css.
Again, focus the error field when the error is raised. This ensures
compatibility with AT and browser combinations that might not fully
support ARIA yet.

Tony

Sent from my wireless phone. Pith is intentional; typos or perceived
abruptness are not.

On Apr 11, 2013, at 16:21, Angela French < <EMAIL REMOVED> > wrote:

>> Angela,
>>
>> if the span is not part of the label, not associated with the form element
>> through ARIA, and not keyboard focusable,the screen reader will ignore it in
>> forms mode.
>>
>> Tony
>
> If the validation error is displayed upon the element losing focus does the screen reader user perceive it, considering that he/she has already "passed" that form element? Even if ARIA is used in the span to associate it with the element?
>
> Angela
>
> > >