Skip to content

Fix reporting of "not checked" for check boxes with no other states in browse mode.#10781

Merged
michaelDCurran merged 1 commit into
nvaccess:masterfrom
jcsteh:fixNotChecked
Feb 12, 2020
Merged

Fix reporting of "not checked" for check boxes with no other states in browse mode.#10781
michaelDCurran merged 1 commit into
nvaccess:masterfrom
jcsteh:fixNotChecked

Conversation

@jcsteh

@jcsteh jcsteh commented Feb 12, 2020

Copy link
Copy Markdown
Contributor

Link to issue number:

none. Fixes a regression introduced by #7279.

CC @LeonarddeR.

Summary of the issue:

STR:

  1. Open this test case in Firefox:
    data:text/html,<div role="checkbox">test
  2. Press down arrow to read the check box in browse mode.
    • Expected: NVDA should say "check box not checked test".
    • Actual: NVDA says just "check box test".

Description of how this pull request fixes the issue:

When determining whether the caller wants states, we must differentiate between None and the empty set. If the caller didn't want states, states will be None. However, empty states means the caller still wants states, but the object had no states; e.g. an unchecked check box with no other states. After #7279 but before this PR, we treated an empty set as if the caller didn't want states.

Testing performed:

As above.

Known issues with pull request:

None known.

Change log entry:

Bug fixes:
- In browse mode, NVDA now reports "not checked" for unchecked check boxes where it sometimes didn't previously.

…n browse mode.

When determining whether the caller wants states, we must differentiate between None and the empty set.
If the caller didn't want states, states will be None.
However, empty states means the caller still wants states, but the object had no states; e.g. an unchecked check box with no other states.
Previously, we treated an empty set as if the caller didn't want states.
@michaelDCurran michaelDCurran merged commit 39274e5 into nvaccess:master Feb 12, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.1 milestone Feb 12, 2020
michaelDCurran added a commit that referenced this pull request Feb 12, 2020
@jcsteh jcsteh deleted the fixNotChecked branch May 1, 2020 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants