Inappropriate Event Handlers Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Inappropriate Event Handlers Check

Description

The “Inappropriate Event Handlers Check” evaluates whether there is any event handler on elements that are not inherently interactive (e.g., <div>, <span>).

Example outcome

I identified 1 instance where event handlers are associated with non-interactive elements.

Impact

Fixes

To address inappropriate event handlers:

  1. Locate the element that is not interective but contains an event handler.
  2. Replace the element by an inherently interactive, keyboard-accessible, and has the correct role element (e.g., <button>).

Resources