Commit 1cb8715
committed
Improve presentation/none check to be case-insensitive
Per WAI-ARIA 1.2 spec: "Case-sensitivity of the comparison inherits
from the case-sensitivity of the host language" — and HTML is
case-insensitive. This improves on the original ember-template-lint
which inconsistently uses case-insensitive matching for VALID_ROLES
but case-sensitive for the presentation/none check.
Ref: https://www.w3.org/TR/wai-aria-1.2/#document-handling_author-errors_roles1 parent f5b445d commit 1cb8715
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
0 commit comments