Skip to content

Conversation

scottaohara
Copy link
Member

@scottaohara scottaohara commented Dec 13, 2024

role=image is the preferred default role, over the previous and still valid img role.

update the spec to call out the existence / allowance of the image role.


labels: needs implementation commitment, needs changelog entry

Closes #481

test case:

<div role=image>foo</div>
<!-- or -->
<div role=image aria-label=bar></div>

Preview | Diff

role=`image` is the preferred default role, over the previous and still valid `img` role.

update the spec to call out the existence / allowance of the `image` role.
@scottaohara scottaohara added the Allowed roles Pertaining to the allowed roles of HTML elements label Dec 13, 2024
@scottaohara
Copy link
Member Author

though only 1 checker supports this for now, being that it's a role that all browsers support and is the preferred role for how browsers expose the img element - i have high confidence this is fine / checkers will update to account for it.

@scottaohara scottaohara merged commit 7f7718c into gh-pages Dec 13, 2024
2 checks passed
@scottaohara scottaohara deleted the add-image-role branch December 13, 2024 19:58
@scottaohara scottaohara added the Meets 2 implementations req Indicates that a spec change has met the necessary 2 implementations needed to merge. label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Allowed roles Pertaining to the allowed roles of HTML elements Meets 2 implementations req Indicates that a spec change has met the necessary 2 implementations needed to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mention of role=image
1 participant