You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

edx-custom-a11y-rules

Package Overview
Dependencies
Maintainers
15
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edx-custom-a11y-rules - npm Package Compare versions

Comparing version

to
1.0.3

6

lib/custom_a11y_rules.js

@@ -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