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.5

32

lib/custom_a11y_rules.js

@@ -14,19 +14,2 @@ var customRules = {

{
'id': 'valid-ids',
'selector': '[id^="0"],[id^="1"],[id^="2"],[id^="3"],[id^="4"],[id^="5"],[id^="6"],[id^="7"],' +
'[id^="8"],[id^="9"]',
'enabled': true,
'tags': [ 'edx-custom' ],
'all': [],
'any': [],
'none': [
'invalid-id-extant'
],
'metadata': {
'description': 'Ensures element ids do not start with a number.',
'help': 'Element ids MUST not start with a number.',
'helpUrl': 'https://openedx.atlassian.net/wiki/display/A11Y/edX+Specific+Accessibility+Tests'
}
},
{
'id': 'nav-aria-label',

@@ -253,19 +236,4 @@ 'selector': 'nav',

}
},
{
'id': 'invalid-id-extant',
'metadata': {
'impact': 'critical',
'messages': {
'pass': 'element ids must not start with a number',
'fail': 'element ids must not start with a number'
},
},
evaluate: function(node, options) {
var nodeName = node.nodeName,
validElems = ['IFRAME'];
return (validElems.indexOf(nodeName) === -1);
}
}
]
};

2

package.json
{
"name": "edx-custom-a11y-rules",
"version": "1.0.4",
"version": "1.0.5",
"description": "Custom rules for accessibility testing with aXe Core",

@@ -5,0 +5,0 @@ "main": "",