You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a11y/table-duplicate-name: closed-dialog tables counted as simultaneously exposed #1637
Summary: .173 warns on /tables-hidden, whose one exposed table is named Content and two Size tables are in distinct closed native dialogs. Minimal HTML: <table aria-label="Content"><tr><td>Main</td></tr></table><dialog><table aria-label="Size"><tr><td>A</td></tr></table></dialog><dialog><table aria-label="Size"><tr><td>B</td></tr></table></dialog>. Actual: one duplicate size name (two tables); expected: exclude closed/inert descendants from current exposed uniqueness or mark unresolved state explicitly, and recheck the relevant opened state. Control /tables-visible has two exposed Size tables and must still warn. Tagged source selects all data tables without static-visibility filtering.
Triage
a11y/table-duplicate-name (packages/rules/src/a11y/table-duplicate-name.ts) selects every table that is not role=presentation or role=none and groups them by accessible name. It applies no visibility filter, so tables inside a closed <dialog> (or hidden, inert, display:none ancestors) count as exposed. Confirmed against the minimal HTML in the report.
Acceptance Criteria
Tables inside a closed <dialog> are not counted as exposed when checking for duplicate names
Tables under a hidden, inert or inline display:none ancestor are excluded the same way
The /tables-hidden case (one exposed "Content" table, two "Size" tables in separate closed dialogs) passes
The /tables-visible control (two exposed "Size" tables) still warns
Excluded tables are surfaced as a diagnostic or an explicit unresolved state, not silently dropped
Unit tests cover the closed dialog, hidden and visible cases
Activity
fix(rules): exclude hidden tables from table-duplicate-name
style(rules): format the squirrelscan#1637 test file with oxfmt
fix(rules): exclude hidden tables from table-duplicate-name (squirrel…