Open andymantell opened 2 years ago
Can confirm the problem. Does not occur with NVDA.
I've managed to work around the bug for the moment by using a <br>
after the legend instead of using a bottom margin to achieve the visual spacing I need. That way JAWS skips the <br>
instead of skipping my paragraph. It's a bit nasty but it's a better user experience.
Can confirm - in sample markup, JAWS skips first paragraph in fieldset on pressing down arrow, after focus has been moved to the
Summary
Given the following html, if you place focus on the
<legend>
element with JavaScript and then press the down arrow key, it announces "Paragraph 2", seemingly skipping the "Paragraph 1" element.https://user-images.githubusercontent.com/134642/177112463-8e838d64-4610-4562-b916-dc7e20142c17.mp4
This only occurs if it's in a fieldset. If I remove the wrapping fieldset but leave the legend in, then it will behave as I'd expect - allowing me to move from the legend down to paragraph 1.
Expected result
I would expect it to announce "Paragraph 1" since this is immediately after the legend
Actual result
It announces "Paragraph 2" - completely skipping over paragraph 1
Example
https://codepen.io/andymantell/pen/rNdOajK
Additional Information
JAWS version and build number
2022.2206.9
Operating System and version
Windows 10
Browser and version:
Chrome 103