The rule description has been improved thanks to community feedback.
The way onClick raises issue has changed:
- there are now three valid equivalents for keyboard: onKeyDown, onKeyUp, onKeyPress, instead of just onKeyPress.
- Exceptions have been added:
For the following elements, pressing a key will trigger the onClick attribute: <input type="button">, <input type="submit">, <button>, <a>. Thus no issue will be raised when an onClick attribute is found in these elements without a onKeyDown/onKeyUp/onKeyPress.
(check that the RSPEC has not been updated since this copy-paste).