Commit 3b3e17a
committed
fix(template-require-media-caption): match kind="captions" case-insensitively
HTML enumerated attribute values are case-insensitive per the spec:
https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attributes
Before: <track kind="Captions"> and kind="CAPTIONS" were treated as
missing a captions track.
Lowercase the value before comparison. Matches jsx-a11y and vue-a11y
(both lowercase before comparing).1 parent 24882a3 commit 3b3e17a
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments