h5 cannot have ancestor with role=img
Web Standard
Description
The element h5 must not appear as a descendant of an element with the attribute role=img
Help
Headings are ignored by screen readers, and cannot be used for navigation, when they’re nested inside ARIA roles that make children presentational.
Applicable standards
- ARIA 5
- WCAG 2.0 (Success Criteria: 1.3.1 level A)
- WCAG 2.1 (Success Criteria: 1.3.1 level A)
- WCAG 2.2 (Success Criteria: 1.3.1 level A)
- Section 508 (2017) (Success Criteria: 1.3.1 level A)
- EN-301-549 (Success Criteria: 1.3.1 level A)
- HTML
Note: Section 508 Refresh (2017) checkpoints are equivalent to WCAG 2.0 level A and level AA checkpoints. EN 301 549 checkpoints are equivalent to WCAG 2.1 level A and level AA checkpoints.
Change history
- 2026.62 Oct 2026 Now fails WCAG 1.3.1.
- 2026.61 Aug 2026 Added.
This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.
Rule ID: W3cHtml5AssertNested-role-img-h5