code: function matches(query, ele) {
    return query.checks.every(function (chk) {
      return match[chk.type](chk, ele);
    });
  }
docs: Returns whether the query matches for the element
  @param query The `{ type, value, ... }` query object
  @param ele The element to compare against