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

JAWS does not narrate label of element who has an iframe child with focusable textbox #712

Closed tronguye closed 1 year ago

tronguye commented 1 year ago

Summary

  1. Go to any HTML document with an iframe containing a labelled textbox, such as this codepen.
  2. Focus on the element directly parent to the iframe.
  3. The expectation is the focus on the parent narrates the parent's label
    • Instead, JAWS is silent

Expected result

JAWS narrates the label of the focused element

Actual result

JAWS is silent

Example

https://codepen.io/tronguye/pen/rNqexWM

Additional Information

JAWS version and build number

JAWS Job Access With Speech Professional Edition Version 2023.2210.29 ILM

Operating System and version

Windows 10 Enterprise Version 22H2

Browser and version:

Microsoft Edge Version 110.0.1587.69 (Official Build) (64-bit)

JAWS-test commented 1 year ago

The parent is a div and a div must not be labeled (https://www.w3.org/TR/wai-aria-1.2/#generic). So I see no bug here

tronguye commented 1 year ago

@JAWS-test I've updated the codepen to add role='region' to the div. There still is no narration when I would expect it to narrate a region label

JAWS-test commented 1 year ago

The problem has nothing to do with the iframe and the textbox.

The problem occurs with all landmark regions: when they receive focus, JAWS outputs either the previously focused element (if the region is empty) or the region's text content. This is indeed a bug.

However, regions should not receive keyboard focus because they are not controls. JAWS automatically outputs the region's label upon entering the region (e.g., TAB on an item in the region).