nvda
nvda copied to clipboard
NVDA not honoring aria-selected="true" in date picker calendar
Steps to reproduce:
- Start NVDA
- Open Firefox
- Navigate to W3C WAI Date Picker Dialog page (https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/)
- In the example, note that no date is currently in the text box. Open calendar by actioning 'Choose Date' button after text input field.
- Use up, down, left and right arrow keys to move around the current month.
- When on one date press Enter key to select that date. Date input field is populated with selected date.
- Return to 'Choose Date' button after text input field and open calendar again.
- Move around month using arrow keys - including moving to previously selected date.
Actual behavior:
- When calendar is first opened NVDA announces current month table and current day number and not selected. For example "April 2024 table, 26 not selected". This is as expected.
- When I move around in month NVDA announces new day number and not selected. For example "25 not selected, 24 not selected".
- When I press Enter to select a date, NVDA announces "button Change Date, Wednesday April 24, 2024"
- When I then open the calendar again and move around month using arrow keys NVDA once again announces day number and not selected.
- When I move to the date I previously selected NVDA announces the day number and not selected.
Expected behavior:
If I have previously selected a date and I go back into the calendar, when I move onto the date I have previously selected I would expect NVDA to announce day number and 'selected' rather than 'not selected'.
Looking at the underlying code for the calendar the table cell containing the previously selected day number has aria-selected="true" present.
NVDA logs, crash dumps and other attachments:
System configuration
NVDA installed/portable/running from source:
NVDA is installed
NVDA version:
2024.1 (2024.1.0.31547)
Windows version:
Windows 10 Version 10.0.19045 Build 19045
Name and version of other software in use when reproducing the issue:
Firefox 125.0.2 (64-bit)
Other information about your system:
Other questions
Does the issue still occur after restarting your computer?
Yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
No
If NVDA add-ons are disabled, is your problem still occurring?
Don't think I have add-ons running
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
Yes
Cc: @jcsteh
Coincidentally, i just filed a Firefox bug about this a few days ago. https://bugzilla.mozilla.org/show_bug.cgi?id=1893096
This has been fixed in Firefox Nightly and will be included in the Firefox 127 release.
Excellent, thanks for letting me know.