You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARIA 1.2 introduces the following imperative in the role="img" definition: In order for elements with a role of img to be perceivable, authors MUST provide a label using the aria-label or aria-labelledby attribute.
Replication of error:
If you run the AXE cli (axe-core 4.3.2 in chrome-headless) on an HTML with the following HTML::
Violation of "role-img-alt" with 2 occurrences!
Ensures [role='img'] elements have alternate text. Correct invalid elements at:
- #img-1
- #img-3
For details, see: https://dequeuniversity.com/rules/axe/4.3/role-img-alt
Expectation:
Two errors:
You should see an error on all three, because none of the images have an "aria-label" or "aria-labelledby" attribute.
I think the error for this scenario should be under --tags cat.aria, but it is not, you see know errors if you run the CLI with --tags cat.aria
The text was updated successfully, but these errors were encountered:
Product: cli
Motivation:
ARIA 1.2 introduces the following imperative in the role="img" definition:
In order for elements with a role of img to be perceivable, authors MUST provide a label using the aria-label or aria-labelledby attribute.
Replication of error:
If you run the AXE cli (axe-core 4.3.2 in chrome-headless) on an HTML with the following HTML::
You will see the following errors:
Expectation:
Two errors:
--tags cat.aria
, but it is not, you see know errors if you run the CLI with--tags cat.aria
The text was updated successfully, but these errors were encountered: