Expected behavior and spec guidance
Because generic elements prohibit naming from author, the screen reader should read "Visible text" and MUST NOT replace it with "Secret label".
- WAI-ARIA 1.2: aria-label property (6.6.1 aria-label)
- WAI-ARIA 1.2: Roles Prohibiting Naming (5.2.8.4 Roles Supporting Name from Author / Prohibited)
Spec requirements (RFC 2119)
View full feature report foraria-label - MUST Convey expected accessible text "Visible text" on the target
- MUST Do not announce overridden or prohibited phrase "Secret label" on the target
- MUST Cause no severe negative side effects
Test case
<span aria-label="Secret label">Visible text</span> Screen reader outcomes
VoiceOver
6 results: 4 fail, 2 untestedmacOS
macOS 26.3.1 (arm64) Google Chrome 157.0.8103.79 2/3 MUST Fail
Visible text Forbidden text "Secret label" was exposed on the target.
- 1.
VO-AreaTopSecret label group is in the VoiceOver cursorItem text: Secret label group
- 2.
VO-Right ArrowVisible text - 3.
VO-Right Arrowend of Secret label groupItem text: Secret label group
- MUSTConvey expected accessible text "Visible text" on the target
Matched:
Visible textPassed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret label group is in the VoiceOver cursorForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
macOS 26.3.1 (arm64) Safari 26.3.1 2/3 MUST Fail
Visible text Forbidden text "Secret label" was exposed on the target.
- 1.
VO-AreaTopSecret label group is in the VoiceOver cursorItem text: Secret label group
- 2.
VO-Right ArrowVisible text - 3.
VO-Right Arrowend of Secret label groupItem text: Secret label group
- MUSTConvey expected accessible text "Visible text" on the target
Matched:
Visible textPassed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret label group is in the VoiceOver cursorForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
macOS 26.3.1 (arm64) Firefox 156.0.1 2/3 MUST Fail
Visible text Forbidden text "Secret label" was exposed on the target.
- 1.
VO-AreaTopSecret label group is in the VoiceOver cursorItem text: Secret label group
- 2.
VO-Right ArrowVisible text - 3.
VO-Right Arrowend of Secret label groupItem text: Secret label group
- MUSTConvey expected accessible text "Visible text" on the target
Matched:
Visible textPassed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret label group is in the VoiceOver cursorForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
macOS 26.3.1 (arm64) WKWebView (macOS WebKit) 21623 WebView 2/3 MUST Fail
Visible text Forbidden text "Secret label" was exposed on the target.
- 1.
VO-AreaTopSecret label group is in the VoiceOver cursorItem text: Secret label group
- 2.
VO-Right ArrowVisible text - 3.
VO-Right Arrowend of Secret label groupItem text: Secret label group
- MUSTConvey expected accessible text "Visible text" on the target
Matched:
Visible textPassed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret label group is in the VoiceOver cursorForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
iOS
iOS (Not tested) Safari (Not tested) VoiceOver iOS Untested
Not yet tested on iOS.
iOS (Not tested) WKWebView (Not tested) WebView VoiceOver iOS Untested
Not yet tested on iOS.
TalkBack
3 results: 2 fail, 1 untestedAndroid
Android 13 (API 33) Google Chrome 109.0.5414.123 TalkBack 14.2.0.618048417 1/3 MUST Fail
Secret label Expected phrase "Visible text" was not spoken. Forbidden text "Secret label" was exposed on the target.
- 1.
TalkBack swipe-rightSecret label
- MUSTConvey expected accessible text "Visible text" on the target
Expected phrase "Visible text" was not spoken.
Failed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret labelForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
Android 13 (API 33) Android System WebView 109.0.5414.123 WebView TalkBack 14.2.0.618048417 1/3 MUST Fail
Secret label Expected phrase "Visible text" was not spoken. Forbidden text "Secret label" was exposed on the target.
- 1.
TalkBack swipe-rightSecret label
- MUSTConvey expected accessible text "Visible text" on the target
Expected phrase "Visible text" was not spoken.
Failed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret labelForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
Android 13 (API 33) Firefox (Not tested) TalkBack 14.2.0.618048417 Untested
Not yet tested on Android Firefox.
Simulated screen reader
1 result: failmacOS
macOS 26.3.1 (arm64) Google Chrome (Headless) 157.0.8103.79 Simulated screen reader 0.32.1 2/3 MUST Fail
Visible text Forbidden text "Secret label" was exposed on the target.
- 1.
virtual.walkSecret labelRole: secret label · Name: Secret label
- 2.
virtual.walkVisible textRole: text · Name: Visible text
- 3.
virtual.walkend, Secret labelRole: end · Name: Secret label
- 4.
virtual.walkend of documentRole: document
- MUSTConvey expected accessible text "Visible text" on the target
Matched:
Visible textPassed - MUSTDo not announce overridden or prohibited phrase "Secret label" on the target
Matched:
Secret labelForbidden text "Secret label" was exposed on the target.
Failed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
W3C ARIA-AT data
Compare all environments foraria-label
Reports from the W3C ARIA-AT Community Group covering aria-label.