Web:S5254 "<html>" element should have a language attribute

Template for a good false-positive report, formatted with Markdown:

  • versions used: SonarQube Version 8.8 (build 42792)
  • minimal code sample: <html <?php language_attributes(); ?>>.

language_attributes() is the default WordPress function to supply the language attribute.
having language_attributes() in the html tag should suppress Web:S5254