A element with ONCLICK but no HREF Screen reader compatibility

Last updated: October 16, 2016

Expected Result: causes problems in some screen readers

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

For expected failures, the results show which AT combos the failures affect. Results are recorded from the user's viewpoint, so describe the user impact of authoring errors.

WCAG Failure: F42

Code used for this test:


        <a onclick='alert(&apos;hello&apos;);'>Hello</a>
    

Change History

Last updated: October 16, 2016

Screen readerBrowserModeNotesWhat the user hears
OK NVDA 2016.2FF48 ReadingLink can be activated in reading mode Link, hello
Fail NVDA 2016.2FF48 TabbingSkipped when tabbing
OK NVDA 2016.2IE11 ReadingLink can be activated in reading mode Clickable, hello
Fail NVDA 2016.2IE11 TabbingSkipped when tabbing
OK NVDA 2015.2FF41 ReadingLink can be activated in reading mode Link, hello
Fail NVDA 2015.2FF41 TabbingSkipped when tabbing
OK NVDA 2015.2IE11 ReadingLink can be activated in reading mode Clickable, hello
Fail NVDA 2015.2IE11 TabbingSkipped when tabbing
OK NVDA 2014.1FF29 ReadingLink can be activated in reading mode Link, hello
Fail NVDA 2014.1FF29 TabbingSkipped when tabbing
OK NVDA 2014.1IE11 ReadingLink can be activated in reading mode Clickable, hello
Fail NVDA 2014.1IE11 TabbingSkipped when tabbing
OK JAWS 17.0.2619FF48 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 17.0.2619FF48 TabbingSkipped when tabbing
OK JAWS 17.0.2619IE11 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 17.0.2619IE11 TabbingSkipped when tabbing
OK JAWS 16.0.4350FF41 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 16.0.4350FF41 TabbingSkipped when tabbing
OK JAWS 16.0.4350IE11 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 16.0.4350IE11 TabbingSkipped when tabbing
OK JAWS 15.0.9023FF29 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 15.0.9023FF29 TabbingSkipped when tabbing
OK JAWS 15.0.9023IE11 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 15.0.9023IE11 TabbingSkipped when tabbing
OK JAWS 14.0.9002FF29 ReadingLink can be activated in reading mode Link hello
Fail JAWS 14.0.9002FF29 TabbingSkipped when tabbing
OK JAWS 14.0.9002IE11 ReadingLink can be activated in reading mode Link, hello
Fail JAWS 14.0.9002IE11 TabbingSkipped when tabbing
OK WindowEyes 9.2IE11 Reading Hello, clickable
Fail WindowEyes 9.2IE11 TabbingSkipped when tabbing
OK WindowEyes 8.4IE11 Reading Hello, on click
Fail WindowEyes 8.4IE11 TabbingSkipped when tabbing
OK VoiceOver OSX 10.11Safari 9.1.2 Reading Hello, clickable
Fail VoiceOver OSX 10.11Safari 9.1.2 TabbingSkipped when tabbing
OK VoiceOver OSX 10.10Safari 9.0.1 Reading Hello, clickable
Fail VoiceOver OSX 10.10Safari 9.0.1 TabbingSkipped when tabbing
Fail VoiceOver iOS 9.1Safari iOS 9.1TouchNo indication that text is a clickable link. Hello
Fail VoiceOver iOS 8.4Safari iOS 8.4TouchNo indication that text is a clickable link. Hello
OK Dolphin SR 15.05IE11 Reading Normal, hello, has onclick
Fail Dolphin SR 15.05IE11 TabbingSkipped when tabbing
OK SaToGo 3.4.96.0IE11Reading TODO
OK SaToGo 3.4.96.0IE11Tabbing TODO

SortSite rules: AccWcag2-F42-1

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:

In the «What the user hears» column: