Closed Bug 1813976 Opened 2 years ago Closed 4 months ago

[CTW] Language not reported for images

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

Details

Attachments

(1 file)

STR (with the NVDA screen reader):

  1. In NVDA menu -> Settings -> Preferences -> Speech:
    • Set the Synthesizer to eSpeak NG.
    • Enable Automatic language switching.
  2. Open this test case:
    data:text/html,<img alt="123" lang="de" src="https://via.placeholder.com/10x10">
  3. Press down arrow to read the line.
    • Expected: NVDA speaks "einhundertdreiundzwanzig" (123 in German).
    • Actual: NVDA speaks "one hundred twenty three" in English.

In bug 1757127, I implemented support for Accessible::Language using the text atributes cache. However, images aren't HyperTextAccessibles, so they don't have text attributes. We'll need special handling for this. We can either:

  1. Cache language in the main cache for this case.
  2. Create a text attributes cache with just this one attribute. While a bit wasteful, it does make the retrieval code simpler.

Either way, we'll need a different code path in BundleFieldsForCache.

Blocks: a11y-ctw
Depends on: 1757127

This also impacts <input type="radio">.

Assignee: nobody → jteh
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b5d106165d75 Support RemoteAccessible::Language on non-HyperText Accessibles. r=morgan
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: