Closed brothercake closed 10 months ago
This is not a JAWS error, but a browser error. This is easy to see in the Devtools (F12), Accessibility tab. The button with an initially empty description is permanently transmitted to the API without a description. This is why the problem also occurs with NVDA. Please close the ticket here and open it at Google Chrome instead.
By the way, the problem only seems to occur in Chrome when the description is hidden
By the way, the problem only seems to occur in Chrome when the description is hidden
Yeah that's true, but hidden elements are better for contextual describedby references because they're not independently navigable.
@brothercake odd behaviour, as a work around it works if there is something in the hidden div
on page load.
https://codepen.io/stevef/pen/poGxjQv
<div hidden id="description3">.</div>
@JAWS-test yes definitely a chrome bug :-)
@stevefaulkner I used a zero-width space :-)
Summary
Expected result
All three buttons should announce their accessible description.
Actual result
The third button does not announce a description.
Example
The following code was used for this example:
The crucial detail is that
#description2
has text content by default, and subsequent dynamic updates to its text content are conveyed as the accessible description, whereas#description3
is empty by default, and subsequent updates are not conveyed.The same is true if the referenced hidden element has text content by default, but is later emptied, and then populated again. Once the element is empty, it is never announced again.
Additional Information
This issue does not occur with JAWS + Firefox.
JAWS version and build number
2024.2310.70
Operating System and version
Windows 11 Home (22H2, 22621.2715)
Browser and version:
Chrome 119.0.6045.200 Edge 119.0.2151.93