diff --git a/accessibility-checker-engine/src/v2/checker/accessibility/rules/rpt-elem-rules.ts b/accessibility-checker-engine/src/v2/checker/accessibility/rules/rpt-elem-rules.ts index f698de008..b8b3703c9 100644 --- a/accessibility-checker-engine/src/v2/checker/accessibility/rules/rpt-elem-rules.ts +++ b/accessibility-checker-engine/src/v2/checker/accessibility/rules/rpt-elem-rules.ts @@ -191,7 +191,7 @@ const DEPRECATED_HTML_GLOBAL_ATTRIBUTES = [ else if (type === 'ARIA_ATTRIBUTES') { str += 'dom:*[' + prop + "]"; } - }console.log(str); + } return str; } @@ -211,7 +211,7 @@ function objToContextStr(obj, type:string) { str += 'aria:' + prop + '[' + item + ']'; } } - } console.log(str); + } return str; } @@ -338,7 +338,7 @@ let a11yRulesElem: Rule[] = [ } } if (violations !== '') - return RuleFail("Fail_6", [violations, nodeName]); + return RuleFail("Fail_6", [violations, role]); } } diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_attribute_deprecated_ruleunit/aria-role-attribute-deprecated.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_attribute_deprecated_ruleunit/aria-role-attribute-deprecated.html index a0fbb6de2..0d596bdf7 100644 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_attribute_deprecated_ruleunit/aria-role-attribute-deprecated.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_attribute_deprecated_ruleunit/aria-role-attribute-deprecated.html @@ -30,9 +30,38 @@

deprecated aria attributes tests

- -
- + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+ +