Back to home

Display A, announce B - normal content

Developers may wish to display one piece of content, but replace it with other content for screen reader users.Examples could include:

Options

Option 1: Normal content - aria-hidden="true"

Test

Example

United Arab Emirates Dirham

Code sample

<span aria-hidden="true">AED</span> 
<span class="sr-only">United Arab Emirates Dirham</span>
Support chart
OS Browser NVDA 2014.4 JAWS 16 VoiceOver
Windows 7 IE 11 Pass Pass
Windows 7 IE 8 Pass Pass
Windows 7 Chrome 39 Pass Pass
Windows 7 Firefox 34 Pass Pass
OSX 10.9 Chrome 39 Pass
OSX 10.9 Firefox 34 FAIL - reads both
OSX 10.9 Safari 7 Pass

Option 2: Normal content - role="presentation"

Test

Example

BAM Bosnia and Herzegovina Convertible Marka

Code sample

<span role="presentation">BAM</span>
<span class="sr-only">Bosnia and Herzegovina Convertible Marka</span>
Support chart
OS Browser NVDA 2014.4 JAWS 16 VoiceOver
Windows 7 IE 11 FAIL - reads both FAIL - reads both
Windows 7 IE 8 FAIL - reads both FAIL - reads both
Windows 7 Chrome 39 FAIL - reads both FAIL - reads both
Windows 7 Firefox 34 FAIL - reads both FAIL - reads both
OSX 10.9 Chrome 39 FAIL - reads both
OSX 10.9 Firefox 34 FAIL - reads both
OSX 10.9 Safari 7 FAIL - reads both

Bottom of page - Back to home