no-empty-role-matches.js 219 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 function noEmptyRoleMatches(node, virtualNode) { if (!virtualNode.hasAttr('role')) { return false; } if (!virtualNode.attr('role').trim()) { return false; } return true; } export default noEmptyRoleMatches;