WebAIM - Web Accessibility In Mind

E-mail List Archives

Focus should always be set somewhere, right?

for

From: Robert Fentress
Date: Jan 30, 2016 3:08PM


I just wanted to confirm that focus should always be set somewhere. For
instance, in rich internet applications you may interact with a control and
that may cause the control to disappear. In those instances, focus should
always be explicitly set somewhere after that item is removed from the DOM,
correct?

On a related note, are there rules for where the virtual cursor (or
equivalent) in screen readers goes when such items are removed from the
DOM? It seems pretty random in my experience, but perhaps there is a
pattern I'm missing.

Thanks.