Skip to content

[BUG] Headings must not be empty with images #452

@tiagoporto

Description

@tiagoporto

Describe the bug
@html-eslint/no-empty-headings returns an error when used with images.

To Reproduce

<h1><img src="./img.svg" alt="Images description" /></h1>

Expected behavior
I expect no errors because it is a valid HTML, and the image text should not be ignored.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions