TableWithoutCaptionCheck should also check for `aria` attributes

  • SonarLint 1.10.0 (VSCode)

I believe the TableWithoutCaptionCheck rule is incorrect. It checks table elements to see if they have a caption element but it should also check to see if the table element has either aria-label or aria-describedby attributes too.

1 Like

Hi Andy,

Thank you for this bug report.
The rule has been modified in SonarHTML 3.2 to support aria-describedby but it is indeed raising False Positives when aria-label or aria-labelledby are used.

I created the following ticket to fix this: SONARHTML-115.
You can see the future rule description here: RSPEC-1085.