mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
Test: fixed HTML5 step attribute tests for firefox44
firefox provides element.type==text, since it does not support the date input type right now.
This commit is contained in:
@@ -1319,7 +1319,7 @@ $.extend( $.validator, {
|
||||
|
||||
// http://jqueryvalidation.org/step-method/
|
||||
step: function( value, element, param ) {
|
||||
var type = element.type,
|
||||
var type = $( element ).attr( "type" ),
|
||||
errorMessage = "Step attribute on input type " + type + " is not supported.",
|
||||
supportedTypes = [ "text", "number", "range" ],
|
||||
re = new RegExp( "\\b" + type + "\\b" ),
|
||||
|
||||
Reference in New Issue
Block a user