title: jquery.validate, jquery.metadata and html5 data
body: <p>I'm looking into using the html5 data- attributes to pass the validation rules to jquery.validate as a stop gap until the plugin is updated with HTML5 support.  I'm using jquery 1.4.2, jquery.validate 1.7 and jquery.validate 2.1.  In my HTML I'm using code such as this: </p>
  
  <pre><code>&lt;input name="foo" type="text" data-validate="{required:true,digits:true}" /&gt;
  </code></pre>
  
  <p>In my jQuery I'm doing the following: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $.metadata.setType ("html5");
  $(function ()
  {
      $('#myForm').validate ({debug:true});
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>This just causes an error message, validator.methods[method] is undefined</p>
  
  <p>I did do a metadata() on the element with the data-validate attribute, and I got an object returned named validate with my attributes set in it, so I know metadata is finding the attribute and loading from it, but the validate plugin can't seem to handle it.  If I go back to class="{validate:{...}}" and comment out the line that configures metadata to use HTML 5, it all works as it should. </p>
  
  <p>Am I doing something wrong, or is there an issue with the validate and/or metadata plugins?  </p>