FreedomScientific / standards-support

Contains documentation for Vispero software support of Web standards
https://freedomscientific.github.io/standards-support/
GNU General Public License v3.0
110 stars 12 forks source link

Landmark not being announced when its first content is a list element #673

Open antrayner opened 1 year ago

antrayner commented 1 year ago

Summary

When using JAWS keystroke 'R' to navigate landmarks, after pressing 'R' typically JAWS will announce the first contents of the landmark, followed by the landmark label and type. If the first content of the landmark is a list element, JAWS appears to miss announcing the landmark label and type after announcing the list.

Expected result

In the codepen test case, there are 3 'region' landmarks, labelled 'first', 'second' and 'third' respectively. The first and third just have plain text contents, the second contains just an unordered list with 2 list items.

After pressing 'R' to arrive at the 'second' landmark (containing just the list element), I would expect JAWS to announce 'list of 2 items, second region'.

Actual result

JAWS just announces 'list of 2 items'.

Note: There are no issues when using the JAWS landmark overview dialog (eg 'Control + Insert + R'). This correctly contains all the landmark labels. The issue only occurs when using JAWS keystroke 'R'.

Example

Please see codepen example: https://codepen.io/anthonyrayner/pen/OJEMjMa

Copied here is the markup from the 3 'region' landmarks, for convenience:

<div role="region" aria-label="first">contents of first</div>
<div role="region" aria-label="second">
  <ul>
    <li>item 1</li>
    <li>item 2</li>
  </ul>
</div>
<div role="region" aria-label="third">contents of third</div>

Additional Information

JAWS version and build number

Tested with JAWS Professional Edition 2022.2207.25 and 2023.2210.29, reproduces with both.

Operating System and version

Windows 10 Pro

Browser and version:

Reproduces with Chrome 106.0.5249.119 and 107.0.5304.88