@diegovelasquezweb/a11y-engine 0.11.7 → 0.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1060,17 +1060,18 @@ async function runPa11yChecks(routeUrl, axeTags, sharedBrowser = null, includeWa
|
|
|
1060
1060
|
failureSummary: cleanMessage,
|
|
1061
1061
|
};
|
|
1062
1062
|
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1063
|
+
// Group errors and warnings separately — mixing them loses confirmed findings
|
|
1064
|
+
const groupKey = `${ruleId}::${isWarning ? "warning" : "error"}`;
|
|
1065
|
+
|
|
1066
|
+
if (groupedByRule.has(groupKey)) {
|
|
1067
|
+
groupedByRule.get(groupKey).nodes.push(node);
|
|
1066
1068
|
} else {
|
|
1067
|
-
|
|
1068
|
-
groupedByRule.set(ruleId, {
|
|
1069
|
+
groupedByRule.set(groupKey, {
|
|
1069
1070
|
id: ruleId,
|
|
1070
1071
|
impact,
|
|
1071
1072
|
tags: ["pa11y-check", ...(wcagCriterion ? [`wcag${wcagCriterion.replace(/\./g, "")}`] : [])],
|
|
1072
1073
|
description: cleanMessage,
|
|
1073
|
-
help: cleanMessage
|
|
1074
|
+
help: cleanMessage,
|
|
1074
1075
|
helpUrl: wcagCriterion
|
|
1075
1076
|
? `https://www.w3.org/WAI/WCAG21/Understanding/${wcagCriterion.replace(/\./g, "")}`
|
|
1076
1077
|
: "https://squizlabs.github.io/HTML_CodeSniffer/",
|