Open
Bug 1901177
Opened 8 months ago
Updated 8 months ago
Cache not updated when lang attribute is changed on html element
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
NEW
People
(Reporter: Jamie, Unassigned)
References
(Blocks 1 open bug)
Details
STR (with the NVDA screen reader):
- In NVDA menu -> Preferences -> Settings -> Speech, change the synthesizer to eSpeak NG and enable "Automatic language switching".
- The synthesizer is changed to eSpeak NG here because it supports language switching.
- Open https://de.wikipedia.org/
- Translate the page from German to English.
- Tab to the page, then read it using the down arrow key.
- Expected: NVDA should read the page using English pronunciation.
- Actual: NVDA tries to read the page using German pronunciation. The result is... rather unintelligible.
The translations feature does change the lang attribute on the <html>
tag from "de" to "en". Unfortunately, it seems the RemoteAccessible cache does not get updated accordingly.
Reporter | ||
Comment 1•8 months ago
|
||
This is going to be particularly tricky to fix because the language attribute is included in the text attributes for every descendant container. We don't want to have to invalidate all containers when this happens. I think we might need to look at moving the language attribute out of the text attributes cache and into the top level cache for all Accessibles, but that does require walking ancestors every time we want to get it.
See Also: → 1739559
You need to log in
before you can comment on or make changes to this bug.
Description
•