w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
178 stars 48 forks source link

Clarify and consolidate img ARIA allowances #453

Closed scottaohara closed 9 months ago

scottaohara commented 1 year ago

This PR closes #424 and #452

This update serves to both clarify that an image with a name, regardless of how that name is provided, should allow the specified roles.

Additionally, it consolidates the expectations for an image with an empty alt, or a missing alt so long as they also have no accessible name.

Using the implicit role of the image, for all instances, has already been marked as not recommended, so errors should not be exposed for that, but rather warnings, if the conformance checker exposes non-error messages.

Test cases for the passing examples


Preview | Diff