phetsims / a11y-research

a repository to track PhETs research into accessibility, or "a11y" for short
MIT License
3 stars 0 forks source link

JAWS Bug: aria-pressed causes focus to leave element on interaction #31

Open jessegreenberg opened 7 years ago

jessegreenberg commented 7 years ago

This was found in https://github.com/phetsims/john-travoltage/issues/224. Is this a bug with JAWS or the way we are using the attribute?

When the aria-pressed attribute is removed from the element, this is no longer an issue for JAWS. We should create a simple test case to see if JAWS does this outside of the sim.

jessegreenberg commented 7 years ago

This example works with IE11 and JAWS: https://jsfiddle.net/6p9c2ue9/8/

The differences is that instead of using <input type="button"> we are using <button>

jessegreenberg commented 7 years ago

This issue is not a problem for <input type="button">

but <input type=button aria-pressed="false"> never receives a click event.

I am not clear whether this is a JAWS feature or a JAWS bug.

jessegreenberg commented 7 years ago

I think we should submit a bug report just in case, it couldn't hurt.