Skip to content

image with empty alt and global aria-attribute should not pass the image-alt rule #2502

Closed
@straker

Description

@straker

The following code snippet should not pass the image-alt rule. The problem is that our has-alt check passes as the image has an empty alt, but the image is not considered presentational because of role conflict resolution of the global aria-label attribute.

<img src="img.jpg" id="violation11" alt="" aria-label="" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions