Open Bug 1596316 Opened 2 years ago

HTMl select dropdowns don't expose language information


(Core :: Disability Access APIs, defect, P3)





(Reporter: Jamie, Unassigned)


(Blocks 1 open bug)


NVDA (and perhaps JAWS, but I'm not sure) don't yet support language switching for focused controls, so this is a bit tricky to test. However, users want this functionality, so screen readers will likely eventually support this.

STR (with the NVDA screen reader):

  1. Open this test case:
    data:text/html,<select size="1"><option lang="de">1
  2. Tab to the select element.
  3. Press NVDA+control+z to open the NVDA Python Console.
  4. Paste this command and press enter:
    wx.CallLater(5000, lambda: speech.speakMessage(repr(api.getFocusObject().language)))
  5. Quickly (before 5 seconds elapses), alt+tab back to Firefox and press alt+downArrow to open the dropdown.
    • Expected: 5 seconds after you pressed enter in the console, NVDA should say "de"
    • Actual: NVDA says "en_US"

This works as expected for a select element with size > 2; i.e. no dropdown. The problem is that select dropdowns are rendered in the parent process and we don't push the lang attribute for options to the parent process.

You need to log in before you can comment on or make changes to this bug.