code: function(next, rule, options) {
          var adapter = options.adapter;
  
          return function(elem) {
              return !adapter.getParent(elem) && next(elem);
          };
      }
docs: TODO determine the actual root element