Knockout-Contrib/Knockout-Validation — pull request #355 by codethug (2013-10-30 05:51:30+00:00)
Title: Min and max validation now use type attribute to determine behavior

When used as HTML5 attributes, min and max were comparing as strings. So an element of `` would validate successfully for a value of 5, because the string "5" is greater than the string "10". This was understandably causing some problems.

This update changes the min and max validators so that they pay attention to the type attribute. For example, the element `` will use appropriate logic to ensure that the entered date is entered as a month and is March 2010 or later. And an element of `` will fail validation if a value of 5 is entered.

Tests and Documentation updates included.

This was originally in PR https://github.com/Knockout-Contrib/Knockout-Validation/pull/324, but I decided to create a new PR after the Knockout-Validation folder restructuring so that this could be a single, clean commit.

Thanks to @stevegreatrex for help in reviewing this feature.