Notice: This is a work in progress. Please submit feedback or suggestions.

Test: HTML option[lang] element

Screen Reader support level: partial (1/10)

Voice Control support level: not applicable

This test ensures that option elements with a lang attribute are announced correctly.

Run this test and and submit your results

On this page

Test HTML

open the test page
<!DOCTYPE html>
<html lang="en">
<head>
    <title>HTML option element with lang attribute</title>
</head>
<body>
<p>Use the screen reader to announce the target element.</p>

<label for="language-picker">
    Select language with lang set
    <select id="language-picker">
        <option lang="en">English</option>
        <option lang="fr">Français</option>
        <option id="target" lang="zh">中文 (简体)</option>
    </select>
</label>
</body>
</html>

Dates and Versions of tested combinations

ATAT VersionBrowserBrowser versionOS versionDate tested
NVDA2018.3.2Firefox62177632018-10-19
VoiceOver (macOS)10.14Safari1210.142018-10-19

Summary of Screen Reader support by expectation

ExpectationJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
lang attribute
MUST switch to the specified language if it is validunknownunknownsupported with 1 unknown resultunknownunknownunknownnone

* means that some support is hidden behind settings

Summary of Voice Control support by expectation

ExpectationDragon Naturally SpeakingVoice Access (Android)Voice Control (iOS)Voice Control (MacOS)Windows Speech Recognition
Not applicable

* means that some support is hidden behind settings

Detailed support results by expectation

Expectation for the lang attribute: switch to the specified language if it is valid

Strength of these expectations for different types of assistive technologies:

  • Screen Readers: MUST
  • Voice Control: NA

Grading method: Just one of the listed commands must pass for the expectation to pass.

This expectation is from the lang attribute feature.

ATBrowserHas SupportOutputAction
Dragon Naturally SpeakingChromenot applicable-More information
JAWSChromeunknown-More information
JAWSIEunknown-More information
JAWSFirefoxunknown-More information
NarratorEdgeunknown-More information
NVDAChromeunknown-More information
NVDAFirefoxyes
  • Result: (pass)
    • command: down arrow (Read next item)
    • before the command was executed
      • mode: auto (mode not explicitly)
      • keyboard focus location: before target
      • virtual cursor location: before target
    • location after command: target
    • Output: 中文 (简体)
Notes: Had to install the Simplified Chinese language in the Windows 10 Language Settings for this to work. If the language is not installed, nothing will be announced.
More information
OrcaFirefoxunknown-More information
TalkBackChromeunknown-More information
Voice Access (Android)Chromenot applicable-More information
Voice Control (iOS)Safarinot applicable-More information
Voice Control (MacOS)Safarinot applicable-More information
VoiceOver (iOS)Safariunknown-More information
VoiceOver (macOS)Safarinone
  • Result: (fail)
    • command: VO + Right arrow (Read next item)
    • before the command was executed
      • mode: auto (mode not explicitly)
      • keyboard focus location: before target
      • virtual cursor location: before target
    • location after command: target
    • Output: (attempts to speak characters as english ideographs)
Notes: Had the Chinese language installed in VO settings.
More information
Windows Speech RecognitionChromenot applicable-More information

Extended Support for: lang attribute: switch to the specified language if it is valid

These are less common combinations

ATBrowserHas SupportOutputAction
Dragon Naturally SpeakingIEnot applicable-More information
Dragon Naturally SpeakingFirefoxnot applicable-More information
JAWSEdgeunknown-More information
NarratorFirefoxunknown-More information
NarratorChromeunknown-More information
NarratorIEunknown-More information
NVDAIEunknown-More information
NVDAEdgeunknown-More information
TalkBackFirefoxunknown-More information
Voice Access (Android)Firefoxnot applicable-More information
VoiceOver (iOS)Chromeunknown-More information
VoiceOver (macOS)Chromeunknown-More information
VoiceOver (macOS)Firefoxunknown-More information
OrcaChromeunknown-More information
Voice Control (MacOS)Chromenot applicable-More information
Voice Control (MacOS)Firefoxnot applicable-More information
Windows Speech RecognitionEdgenot applicable-More information
Back to top

History

  • 2018-10-19 Test created