Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Table elements missing `a11y_click_events_have_key_events` compiler warnings | GoodFirstPicks

Table elements missing `a11y_click_events_have_key_events` compiler warnings

sveltejs/svelte 0 comments 12d ago
View on GitHub
lowopenScope: clearSkill match: yesSvelteTypeScript

Why this is a good first issue

Table elements missing accessibility warnings that other elements have.

AI Summary

The issue reports that table row elements (tr) don't trigger the same accessibility warnings about click events needing keyboard events as other HTML elements do. This appears to be a missing case in the compiler's accessibility checks. The fix would involve updating the compiler's warning logic to include table-related elements.

Issue Description

Describe the bug

<!-- a11y_click_events_have_key_events -->
<div onclick={() => {}}></div>
<span onclick={() => {}}></span>
<h1 onclick={() => {}}></h1>
<section onclick={() => {}}></section>

<!-- no warning -->
<tr onclick={() => {}}></tr>

Reproduction

https://svelte.dev/playground/4cbe7c2ed42b498089cfa612de9516fd?version=latest

Logs

System Info

playground

Severity

annoyance

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • potential cross-browser testing needed
Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchyes
Test Focusedno