Commit 5b12b64
committed
fix: trim static attr value, remove dead code (Copilot review)
- getStaticAttrValue() now trims chars so callers don't handle whitespace.
- Lowercase the node value when comparing against aria-query's attrSpec.value
(HTML enumerated attribute values are ASCII case-insensitive per HTML
common-microsyntaxes §2.3.3).
- Remove unused createUnsupportedAttributeErrorMessage() dead code; the rule
uses messageId/data exclusively.1 parent ffa45d0 commit 5b12b64
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 3 | | |
12 | 4 | | |
13 | 5 | | |
| |||
17 | 9 | | |
18 | 10 | | |
19 | 11 | | |
20 | | - | |
| 12 | + | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
| |||
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
34 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
0 commit comments