code: function(element) {
    'use strict';
  
    return function(dom, reporter) {
      var that = this;
  
      dom.$(element).each(function(index, item){
        reporter.error(that.message, 0, that.name);
  
        throw dom.$(item).parent().html();
      });
    };
  }
docs: RuleFactory object.
  Decouples rule creation from AriaLinter
   
  Given an element, generates a function that checks that that element is not in the dom.