diff --git a/accessibility-checker-engine/src/v4/rules/aria_activedescendant_tabindex_valid.ts b/accessibility-checker-engine/src/v4/rules/aria_activedescendant_tabindex_valid.ts index 62b5e70f2..852ad46aa 100644 --- a/accessibility-checker-engine/src/v4/rules/aria_activedescendant_tabindex_valid.ts +++ b/accessibility-checker-engine/src/v4/rules/aria_activedescendant_tabindex_valid.ts @@ -62,8 +62,9 @@ export let aria_activedescendant_tabindex_valid: Rule = { return null; } - //check if the attribute 'aria-activedescendant' is valid for the role of the element - + //ignore if the attribute 'aria-activedescendant' is blank + if (ruleContext.getAttribute("aria-activedescendant").trim().length === 0) + return; // If the tabindex attribute is provided then verify that it is 0 or -1 passed = RPTUtil.isTabbable(ruleContext); diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_activedescendant_tabindex_valid_ruleunit/activedescendant_blank_tabbable.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_activedescendant_tabindex_valid_ruleunit/activedescendant_blank_tabbable.html new file mode 100755 index 000000000..53a980821 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_activedescendant_tabindex_valid_ruleunit/activedescendant_blank_tabbable.html @@ -0,0 +1,41 @@ + + + + + +
+