Interactive iframe with role=presentation and aria-label attribute Screen reader compatibility

ARIA HTML
Dec 12, 2023

Expected Result: works in a screen reader

Actual Result: causes problems in 2 screen reader / browser combinations

Tests if role=presentation hides iframe from accessibility tree.

Code used for this test:


		<iframe src='1234.html' width='400' height='100' role='presentation' aria-label='This is aria-label'> </iframe>
	

Reliability Trend

This graph shows reliability over time for this code in NVDA, JAWS and Voiceover. Other screen readers don't have enough historical data yet to plot trends.

100%80%60%40%20%0%201520162017201820192020202120222023100%

Change History

Last updated: December 12, 2023

  • Good NVDA with Chrome OK in NVDA 2023.3
  • Good NVDA with FF OK in NVDA 2023.3
  • Bad JAWS with Chrome Causes problems in JAWS 2023.2311.34
  • Good JAWS with FF OK in JAWS 2023.2311.34
  • Good VoiceOver macOS OK in VoiceOver macOS 14.2
  • Good VoiceOver iOS OK in VoiceOver iOS 17.1
Screen readerBrowserModeNotesWhat the user hears
OK NVDA 2023.3Chrome 121 Reading This is aria-label, grouping, example target grouping, this is an, link, example hyperlink in the target page.
OK NVDA 2023.3Chrome 121 Tabbing This is aria-label, grouping, example target grouping, this an example hyperlink, link, in the target page, example hyperlink, link.
OK NVDA 2023.3FF 115 Reading This is aria-label, frame, this is an, visted link, example hyperlink, in the target page.
OK NVDA 2023.3FF 115 Tabbing This is aria-label, frame, example hyperlink, visited link.
OK NVDA 2023.3Edge 121 Reading This is aria-label, grouping, example target grouping, this is an, link, example hyperlink in the target page.
OK NVDA 2023.3Edge 121 Tabbing This is aria-label, grouping, example target grouping, this an example hyperlink, link, in the target page, example hyperlink, link.
OK JAWS 2023.2311.34Chrome 121 Reading Group start, example target. This is an. Link, example hyperlink. In the target page.
Fail JAWS 2023.2311.34Chrome 121 Tabbing Reads link as group role instead of link role, and reads URL of iframe document This is aria-label, group, example target, group, slash 1234 dot html, group
OK JAWS 2023.2311.34FF 115 Reading role=presentation makes frame seamless This is an. Link, example hyperlink. In the target page.
OK JAWS 2023.2311.34FF 115 Tabbing This is aria-label, frame, this is aria-label. Example hyperlink, link.
OK JAWS 2023.2311.34Edge 121 Reading Group start, example target. This is an. Link, example hyperlink. In the target page.
Fail JAWS 2023.2311.34Edge 121 Tabbing Reads link as group role instead of link role, and reads URL of iframe document This is aria-label, group, example target, group, slash 1234 dot html, group
OK VoiceOver macOS 14.2Safari 17.2 Reading role=presentation makes frame seamless This is an. Example hyperlink, link. In the target page.
OK VoiceOver macOS 14.2Safari 17.2 Tabbing Link, example hyperlink
OK VoiceOver iOS 17.1Safari iOS 17.1Touch This is an. Example hyperlink, link. In the target page.

Test notes

All tests were carried out with screen reader factory settings. JAWS in particular has a wide variety of settings controlling exactly what gets spoken.

Screen readers allow users to interact in different modes, and can produce very different results in each mode. The modes used in these tests are:

  • Reading Content read using the “read next” command in a screen reader
  • Tabbing Content read using the “tab” key in a screen reader
  • Heading Content read using the “next heading” key in a screen reader
  • Touch Content read when touching an area of screen on a mobile device

In the “What the user hears” column:

  • Commas represent short pauses in screen reader voicing
  • Full Stops represent places where voicing stops, and the “read next” or “tab” or “next heading” command is pressed again
  • Ellipsis … represent a long pause in voicing
  • (Brackets) represent voicing that requires a keystroke to hear