Commit 3ce40eb
committed
fix(#19): drop details/option/datalist from focusable set (Copilot review)
Per HTML §6.6.3 'Sequential focus navigation', none of <details>,
<option>, or <datalist> are focusable by default:
- <details>: the focusable control is its <summary> child
- <option>: not in default tab order; <select> is focused and arrow keys
navigate options within it
- <datalist>: no user-facing UI; the paired <input list> is focused
Including them in UNCONDITIONAL_FOCUSABLE_TAGS was over-aggressive and
caused false positives on this rule. Tests updated to pin the
now-allowed cases.1 parent 6e45e37 commit 3ce40eb
1 file changed
Lines changed: 6 additions & 3 deletions
File tree
- lib/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments