jzaefferer/jquery-validation — pull request #778 by johnnyreilly (2013-06-11 14:51:23+00:00)
Title: Switch dataRules parsing to fall in line with the W3C HTML5 specification

Hi Jörn

This change would amend the way the plug-in extracts data rules from using this technique:

```javascript
$element.data("rule-number")
```

To this technique:

```javascript
$element.data("ruleNumber")
```

I’m not sure if this pull request provides any significant value as it doesn’t fix anything. I submit it as it brings jQuery Validate in line with the W3C HTML5 specification:

http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes

jQuery fell into line with this in jQuery 1.6:

http://api.jquery.com/data/#data-html5

If you want jQuery Validate to continue to work with jQuery versions prior to 1.6 then you may want to reject this pull request. Though on http://jqueryvalidation.org/ the earliest tested version listed is 1.6.4 which made me think it may make sense.

I’m not sure if there are plans to deprecate the “data with hyphens” style data extraction from jQuery. If there are then it may make sense to merge this. If not then it's your call, given this is not strictly fixing anything.

The existing tests pass with this change.

All the best,
John