RFR: 8365305: The ARIA role ‘contentinfo’ is not valid for the element <footer>

Hannes Wallnöfer hannesw at openjdk.org
Mon Aug 18 09:05:11 UTC 2025


On Tue, 12 Aug 2025 05:14:40 GMT, Pasam Soujanya <duke at openjdk.org> wrote:

> Accessibility testing reported a violation with rule_id aria_role_valid for API docs which has role=contentinfo for footer HTML element. As per https://www.w3.org/TR/html-aria/#docconformance, if footer is a descendant of an article, aside, main, nav or section element, or an element with role=article, complementary, main, navigation or region then role=contentinfo is not allowed.

This change looks correct according to the HTML ARIA spec.

-------------

Marked as reviewed by hannesw (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26737#pullrequestreview-3127463115


More information about the javadoc-dev mailing list