Commit 94d8382
committed
fix(template-no-aria-unsupported-elements): source reserved-element list from aria-query
The rule's hand-maintained set covered 8 elements:
meta, html, script, style, title, base, head, link
aria-query's dom map marks 16 elements as reserved (its source is
HTML-AAM §2, which lists every element that must not have ARIA):
base, col, colgroup, head, html, link, meta, noembed, noscript,
param, picture, script, source, style, title, track
Replace the hand-list with a filtered view of aria-query's dom map.
aria-query is already a dependency (used elsewhere for role/attribute
validation). No new dependency, no behavioural regression — the new set
is a superset of the old one.
Six new invalid tests cover the previously-missing elements: col,
colgroup, noscript, picture, source, track.1 parent 24882a3 commit 94d8382
2 files changed
Lines changed: 41 additions & 12 deletions
File tree
- lib/rules
- tests/lib/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
32 | 64 | | |
33 | 65 | | |
0 commit comments