edx-custom-a11y-rules
Advanced tools
Comparing version
@@ -185,4 +185,6 @@ var customRules = { | ||
evaluate: function(node, options) { | ||
var href = node.getAttribute('href') || '', linkTarget; | ||
if (href.startsWith('#') && href.length > 1) { | ||
var href = node.getAttribute('href') || '', | ||
linkTarget, | ||
rel = node.getAttribute('rel') || ''; | ||
if (href.startsWith('#') && href.length > 1 && rel !== 'leanModal') { | ||
linkTarget = document.querySelector(href); | ||
@@ -189,0 +191,0 @@ return axe.commons.dom.isFocusable(linkTarget); |
{ | ||
"name": "edx-custom-a11y-rules", | ||
"version": "1.0.0", | ||
"version": "1.0.3", | ||
"description": "Custom rules for accessibility testing with aXe Core", | ||
@@ -5,0 +5,0 @@ "main": "", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
-50%36472
-63.22%8
-50%265
-61.09%