-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listitem
rule fails with roles inheriting from the 'list' or 'listitem' roles
#1677
Comments
If you agree this is a false-positive, I can submit at PR 😊 |
Sounds good to me, a PR would be great! Just to be clear, did you mean that <ul>
<li role="doc-biblioentry">an entry</li>
…
</ul> fails the |
Totally agreed, although I'm not sure there's an obvious fix for it. Axe-core doesn't have a good representation of the ARIA role hierarchy. If you find it's going to be a complicated fix, please put together a proposal. Don't want to waste a whole bunch of time and then find out there's some (possibly unrelated) edge case that makes it not work. |
Yes, that one would fail the
In our local patches to Axe we used the |
There are other role types that aren't |
@rdeltour I was just reviewing this ACT-R rules: I started digging a little, and according to dpub-aria, |
Yes, I think it should fail. |
Looking at this again. At this point both |
Expectation: Axe would not report a failure to the rule
listitem
when native list elements (ol
,ul
,li
) declare a more specific role inheriting from their native role (e.g.role="directory"
onul
,role="doc-biblioentry
onli
, etc.).Actual: the rule
listitem
fails.Motivation: even if some of those roles may have limited accessibility support (like the DPUB roles), using them on elements with native list semantics is an appropriate fallback and should pass the rule.
Example 1 of markup that will fail the rule
listitem
Example 2 of markup that will fail the rule
listitem
The text was updated successfully, but these errors were encountered: