Commit dc93f21
committed
test(template-no-unsupported-role-attributes): cite HTML-AAM §3.5.3 in <a> divergence note
Researched the href-less <a> divergence: per HTML-AAM 1.2 §3.5.3 the
implicit role IS `generic` (which is what we resolve via aria-query).
jsx-a11y's `getImplicitRoleForAnchor` returns `''` for href-less <a>,
and its role-supports-aria-props rule then early-returns on no-role and
silently allows any aria-* — jsx-a11y's own source comments this as
"This actually isn't true - should fix in future release". vue-a11y
walks aria-query the same way we do and reaches the same conclusion.
We're spec-current; jsx-a11y is spec-stale. Updated the test comment
to reflect this rather than calling our behavior an "acknowledged
false-positive".1 parent 701362f commit dc93f21
1 file changed
Lines changed: 9 additions & 5 deletions
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
0 commit comments