WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Where do single page applications fail WCAG2?

for

From: Bim Egan
Date: Feb 10, 2015 5:44AM


You're right Patrick,
It does sound as though focus has been lost. It's a common problem in
single page applications, along with the fact that there's no change in
page title unless JavaScript has been used to update it.

But I see Lynn's problem, loss of focus or context comes under WCAG2 SC
3.2.2 On Input, which says that it covers a change of setting for a form
control, but does not cover the activation of a link or button. [1]

Single page applications can be made accessible, but can they be deemed to
fail WCAG2 at Level AA or even Level A? They should, as the loss of focus
and page title problems are extremely disorientating for blind people. But
if the overall page has a title and the focus is lost on activating a
button, what does it fail on?

Bim
[1]
http://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-
change.html




-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of Patrick H. Lauke
Sent: 10 February 2015 11:28
To: <EMAIL REMOVED>
Subject: Re: [WebAIM] Where do single page applications fail WCAG2?

On 10/02/2015 10:38, Lynn Holdsworth wrote:
> And as for focus order, the focus seems to go to the first link in the
> document, which is where it would go if a whole new page were loaded,
> so I'm not sure I can fault them on that.
>
> What I really want to fail them on is something around AT not being
> alerted to the fact that new content has loaded. JAWS for one isn't
> always great at refreshing its off-screen model, and in this case it
> tells me that I'm still on the Login button, which doesn't exist in
> the newly loaded view.

This sounds more like the focus is actually lost, rather than being
programmatically set to the newly shown content. A subsequent TAB would then
go to the first link in the document, purely because the browser actually
lost it and reset it to the start of the document.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke
messages to <EMAIL REMOVED>