Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
see if this fixes it
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Youngstrom committed Mar 19, 2019
1 parent b5d270c commit 1b396ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/custom_a11y_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ var customRules = {
rel = node.getAttribute('rel') || '';
if (href.startsWith('#') && href.length > 1 && rel !== 'leanModal') {
linkTarget = document.querySelector(href);
console.log("linkTarget: " + linkTarget)
console.log(node)
console.log(options)
if (!linkTarget) {
return false;
}
return axe.commons.dom.isFocusable(linkTarget);
} else {
return true;
Expand Down

0 comments on commit 1b396ea

Please sign in to comment.