Closed kolaps33 closed 1 year ago
@kolaps33 There are a couple of things going on here, but I think you need to use role="alert"
if you want to interrupt the announcement of the button accessible name. Note i also change the display value of the message element.
test case using role alert
assistive technologies SHOULD notify the user immediately. this is an normative RFC keyword:
SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course.
In this case AT decided that they don't want to interrupt the reading of the control name with aria-live=assertive
.
Example to run (extract it to find html file): live-region-assertive.zip
Repro steps
Expected result
When live regions are marked as assertive, assistive technologies SHOULD notify the user immediately. In our example screen reader should interrupt focused button narration and should narrate live region content.
Actual result
screen reader finish narration of focused button. After that narrates live region content.
Example
please find enclosed HTML page
Additional Information
When user focus button, then there is timeout 10 milliseconds to trigger live region update.
JAWS version and build number
2023.2303.14
Operating System and version
Win11 Version 10.0.22621 Build 22621
Browser and version:
Chrome Version 113.0.5672.127 (Official Build) (64-bit)
Example source code: