Skip to content

Critical error of alt attribute not present is thrown even if image is wrapped inside <figure> element and a caption is provided in <figcaption> element. #4473

Open
@manav-sharma69

Description

@manav-sharma69

Product

axe Extension

Product Version

4.80.1

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

The extension should not throw warning because <figcaption> element was present to provide caption for the image.

Actual

The extension threw a critical level issue titled "Images must have alternate text".

How to Reproduce

The site tested was MDN's demo of Basic View Transitions.

Screenshot:
alt attribute error

Additional context

W3's Guidance for conformance checkers says:

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibility supportrule metadataIssues in the rule metadata code (lib/rules)rulesIssue or false result from an axe-core rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions