Open Bug 1838502 Opened 2 years ago Updated 22 days ago

VoiceOver announces textarea label twice

Categories

(Core :: Disability Access APIs, defect)

Firefox 114
Desktop
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: ldebeasi, Assigned: eeejay)

References

Details

(Keywords: papercut)

Attachments

(1 file)

Attached file Code reproduction

Steps to reproduce:

  1. Open the code reproduction in Firefox on macOS.
  2. Turn VoiceOver on.
  3. Tab to focus the textarea. Observe that VoiceOver reads the label twice.

Other Info:

  • This does not reproduce in Chrome and Safari on macOS.
  • This does not reproduce if the label and textarea are siblings linked using "for".

Actual results:

The label is read twice.

Expected results:

I expect that VoiceOver only reads the label once.

The Bugbug bot thinks this bug should belong to the 'Core::Disability Access APIs' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Disability Access APIs
Product: Firefox → Core
Severity: -- → S3
OS: Unspecified → macOS
Hardware: Unspecified → Desktop

Is this the AXTitle/AXDescription thing biting us again?

In a way -- I think we're duplicating the label because we're also exposing the label as the text area's AXTitleUIElement -- webkit's exposesTitleUIElement function is probably the example to follow here, since the only mention of this attr I could find in the spec is an example of what we're doing right now:

Property: AXDescription: <value> if the value is not exposed visually
Property: AXTitle: <value> if the value is exposed visually
Property: AXTitleUIElement points to accessible node matching IDREF, if there is a single referenced element that is in the accessibility tree

blah -- upon further investigation this is actually because we're (correctly?) giving the <label> element its own AXDescription, which Safari doesn't do. The title UI element thing is also inconsistent between browsers, but it doesn't seem to be causing a/this problem :)

:Jamie dare I ask how we're supposed to do name computation on label elements...? Is giving the <label> a name equiv to its text content appropriate here?
I guess VO just doesn't want it exposed..?

Keywords: papercut
See Also: → 1781153

I'm going to take this as well because I think it is the same/similar to bug 1838502.

Assignee: nobody → eitan
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: