Skip to content

Commit

Permalink
adding test for step attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Dec 4, 2009
1 parent 05c97de commit f36fc2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ window.Modernizr = (function(window,doc){
inputMultiple = 'inputmultiple',
inputPattern = 'inputpattern',
inputRequired = 'inputrequired',
inputStep = 'inputstep',

// list of property values to set for css tests
setProperties = ' -o- -moz- -ms- -webkit- '.split(' '),
Expand Down Expand Up @@ -524,6 +525,10 @@ window.Modernizr = (function(window,doc){
tests[inputRequired] = function() {
return 'required' in f;
};

tests[inputStep] = function() {
return 'step' in f;
};

// Run through all tests and detect their support in the current UA.
for ( feature in tests ) {
Expand Down

0 comments on commit f36fc2e

Please sign in to comment.