Skip to content

Commit

Permalink
code clean up #2090
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Dec 2, 2024
1 parent 86c53d1 commit 61319ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const aria_accessiblename_exists: Rule = {
let role = AriaUtil.getResolvedRole(ruleContext);

const name_pair = AccNameUtil.computeAccessibleName(ruleContext);
if (!name_pair || !name_pair.name || name_pair.name.trim().length === 0) {console.log("role="+role+", pair="+JSON.stringify(name_pair));
if (!name_pair || !name_pair.name || name_pair.name.trim().length === 0) {
if (role === 'img' || role === 'image')
return RuleFail("fail_no_accessible_name_image", [ruleContext.nodeName.toLowerCase(), role]);
return RuleFail("fail_no_accessible_name", [ruleContext.nodeName.toLowerCase(), role]);
Expand Down

0 comments on commit 61319ff

Please sign in to comment.