Web:S6821 role="toolbar" is not a valid role

What
Concerns the rule: Web:S6821 - DOM elements with ARIA roles should have a valid non-abstract role

The rule is reporting that the attribute role with the value toolbar is invalid.

But this value exists in the linked documentation Accessible Rich Internet Applications (WAI-ARIA) 1.2

What language is this for?
HTML

IDE/Plugins versions
SonarLint 10.6.2.78685
IntelliJ IDEA 2024.1.2 (Ultimate Edition)

How can we reproduce the problem?
You can use the code in this bootstrap example in an HTML document: Button group · Bootstrap v5.3

Hi Loïc,

Sorry for the long delay. Thank you for raising this!

Indeed, toolbar is a valid role and shouldn’t be raised as an issue in this case.

I created a ticket to track this false positive:
https://sonarsource.atlassian.net/browse/SONARHTML-256