jzaefferer/jquery-validation — pull request #292 by shakerlxxv (2011-12-28 08:08:53+00:00)
Title: Issue #287 : change 'accept' to support HTML standard accept attribute

This change modifies the 'accept' attribute behavior to agree with the HTML standard.

Specifically, if the 'accept' attribute is used with a file input field, then it should have the format matching a MIME type rather than a file extension.

In the event the 'accept' attribute is being used on a NON-flle input field, then the existing validation behavior is preserved. This is really for 2 reasons:
* While the HTML standard specifies the 'accept' attribute is to only be used with file input fields, there was nothing in the existing jquery-validation plugin which prevented it from being used on text input fields.
* Also the MIME type property which is being checked on the client side is only available for file input fields. So it seemed reasonable to leave the existing behavior.

With this change I've include a demo, and all the 'accept' unit tests are passing.