Rule EVTCLK-1
Every onClick event handler should be on a focusable element.

Description

Best Practice Type: Pass/Fail

  • a elements with an href and/or tabindex attribute with a value greater than or equal 0.
  • input, select, button and textarea elements.

Markup

[onclick] (HTML4)

Associated Accessibility Guidelines and Standards

Guideline or
Standard
Requirement Priority Test
Type
IITAA 13.1 Ensure that scripted functions are usable with assistive technologies. Required Violation
Section 508 1194.22 (n) When electronic forms are designed to be completed on-line, the form shall allow people using assistive technology to access the information, field elements, and functionality required for completion and submission of the form, including all directions and cues. Required Violation
WCAG 1.0 8.1 Make programmatic elements such as scripts and applets directly accessible or compatible with assistive technologies. Required Violation
WCAG 2.0 2.1.2 No Keyboard Trap Required Violation

Examples

Evaluation Techniues

none

Testsuite Tests

none