<hgroup> element incorrectly reported as deprecated

Please provide

  • Operating system: Windows 11
  • SonarLint plugin version: v4.11.1
  • Programming language you’re coding in: HTML
  • Is connected mode used: No

And a thorough description of the problem / question:
I’ve recently noticed that sonarlint is incorrectly reporting the element as deprecated.
Both HTML5 Differences from HTML4 and HTML Standard have nothing saying that the element is deprecated, and the spec exists here: HTML Standard

Hi,

Welcome to the community and thanks for this report!

What’s the id of the rule that’s raising these issues? It will look like S123.

 
Thx,
Ann

Hi Ann,

It looks like it doesn’t have that ID format - vs code is showing: sonarlint(Web:UnsupportedTagsInHtml5Check)
I’ve also found the rule online here: HTML static code analysis

Many thanks,
~ Niall

1 Like

Hi Niall,

That’s exactly what I needed. I thought all the old rule IDs had been updated to the ‘modern’ format, but I was clearly wrong.

I’m going to flag this for the language experts.

 
Thx,
Ann

1 Like

Hello Niall,

Thank you for reporting this. Digging deeper into the <hgroup> state, it did seem that in 2013 it was considered to be removed from the specification - here is a link that talks about its deprecation.

However, seeing that it is present in the w3 spec and mdn, I think we can remove it from this rule.

I’ve created a ticket to track this.

Kind regards,
Michal

1 Like