Skip to content

Commit

Permalink
fix the rule #1676
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Oct 13, 2023
1 parent c81ecac commit 6b20c87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export let element_tabbable_unobscured: Rule = {
act: [],
run: (context: RuleContext, options?: {}, contextHierarchies?: RuleContextHierarchy): RuleResult | RuleResult[] => {
const ruleContext = context["dom"].node as HTMLElement;
if (!VisUtil.isNodeVisible(ruleContext) || (!RPTUtil.isTabbable(ruleContext) && (!ruleContext .hasAttribute("tabindex")|| parseInt(ruleContext.getAttribute("tabindex")) < 0)))
if (!VisUtil.isNodeVisible(ruleContext) || !RPTUtil.isTabbable(ruleContext))
return null;

const nodeName = ruleContext.nodeName.toLocaleLowerCase();
Expand Down

0 comments on commit 6b20c87

Please sign in to comment.