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

Commit

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

0 comments on commit b5d270c

Please sign in to comment.