edx-custom-a11y-rules
Advanced tools
Comparing version
@@ -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); | ||
} | ||
} | ||
] | ||
}; |
{ | ||
"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": "", |
35231
-3.4%233
-12.08%