Remove not needed ARIA roles

Created on 12 March 2022, almost 3 years ago
Updated 5 October 2023, about 1 year ago

Problem/Motivation

Running https://validator.w3.org/nu on produced theme HTML reports next warning:

  • Warning: The banner role is unnecessary for element header.
  • Warning: The navigation role is unnecessary for element nav.
  • Warning: The main role is unnecessary for element main.
  • Warning: The article role is unnecessary for element article.
  • Warning: The contentinfo role is unnecessary for element footer.

We should remove this ARIA roles.

However judging by #3117230-25: Remove redundant role="article" from

html tags → as long as we support IE11 we should not do it. Comments in that issue also states that other browsers like Safari, has a lot of accessibility issues and this roles helps with this.

We should not do this until core drops IE11 and 📌 Remove redundant role="article" from html tags Fixed is not committed in core.

📌 Task
Status

Closed: duplicate

Version

1.0

Component

BS Base

Created by

🇷🇸Serbia pivica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024