no-empty-role-matches.js 228 B

12345678910111213
  1. function noEmptyRoleMatches(node, virtualNode) {
  2. if (!virtualNode.hasAttr('role')) {
  3. return false;
  4. }
  5. if (!virtualNode.attr('role').trim()) {
  6. return false;
  7. }
  8. return true;
  9. }
  10. export default noEmptyRoleMatches;