diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json index 4e516dc7..2074aaa8 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json @@ -3,7 +3,7 @@ "type": "CODE_SMELL", "code": { "impacts": { - "MAINTAINABILITY": "HIGH" + "MAINTAINABILITY": "BLOCKER" }, "attribute": "LAWFUL" }, diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ParentElementIllegalCheck.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ParentElementIllegalCheck.html index 9b1beb3a..2b46f855 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ParentElementIllegalCheck.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ParentElementIllegalCheck.html @@ -1,4 +1,4 @@ -

This rule is deprecated; use {rule:Web:ChildElementIllegalCheck} instead.

+

This rule is deprecated; use {rule:Web:S1931} instead.

Why is this an issue?

Checker for illegal parent element.

E.g.: title must not have parent element body.

diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json index 1f6d301f..49038ec2 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json @@ -24,5 +24,5 @@ 546 ] }, - "quickfix": "unknown" + "quickfix": "infeasible" } diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.html index c2d119c2..4d92996f 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.html @@ -3,12 +3,8 @@

Why is this an issue?

default language of a document.

It enables assistive technologies, such as screen readers, to provide a comfortable reading experience by adapting the pronunciation and accent to the language. It also helps braille translation software, telling it to switch the control codes for accented characters for instance.

-

Other benefits of marking the language include:

- +

Other benefits of marking the language include assisting user agents in providing dictionary definitions or helping users benefit from translation +tools.

Both the lang and the xml:lang attributes can take only one value.

 

Noncompliant code example

diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6822.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6822.html index 4551689a..332fa707 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6822.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6822.html @@ -6,15 +6,22 @@

Why is this an issue?

technologies like screen readers.

For example, a <button> element has a default role of button. If you explicitly define the role of a <button> element as button, it’s considered redundant because it’s the default role of that element.

-

How to fix it in JSX

-

Remove redundant ARIA role attribute.

-

Code examples

-

Noncompliant code example

 <button role="button" onClick={handleClick}>OK</button>
 
-

Compliant solution

+

Remove ARIA role attributes when they are redundant.

 <button onClick={handleClick}>OK</button>
 
+

Resources

+

Documentation

+ +

Standards

+ diff --git a/sonarpedia.json b/sonarpedia.json index a609938a..f5bdca24 100644 --- a/sonarpedia.json +++ b/sonarpedia.json @@ -3,7 +3,7 @@ "languages": [ "HTML" ], - "latest-update": "2024-04-19T15:10:59.766847500Z", + "latest-update": "2024-11-26T09:52:26.195460Z", "options": { "no-language-in-filenames": true, "preserve-filenames": true