Sha256: be9df20d7c66931fc5aa65e7da6531ca182a3dbfb8c178eed11e5a988cd21735
Contents?: true
Size: 618 Bytes
Versions: 104
Compression:
Stored size: 618 Bytes
Contents
options = Array.isArray(options) ? options : []; var invalid = [], aria = /^aria-/; var attr, attrName, attrs = node.attributes; var skipAttrs = ['aria-errormessage']; for (var i = 0, l = attrs.length; i < l; i++) { attr = attrs[i]; attrName = attr.name; // skip any attributes handled elsewhere if (!skipAttrs.includes(attrName)) { if ( options.indexOf(attrName) === -1 && aria.test(attrName) && !axe.commons.aria.validateAttrValue(node, attrName) ) { invalid.push(attrName + '="' + attr.nodeValue + '"'); } } } if (invalid.length) { this.data(invalid); return false; } return true;
Version data entries
104 entries across 104 versions & 1 rubygems