Skip to content

Commit

Permalink
adding test for maxlength attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor authored and Modernizr committed Dec 4, 2009
1 parent 0587077 commit f17b5ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modernizr.js
Expand Up @@ -123,6 +123,7 @@ window.Modernizr = (function(window,doc){
inputAutofocus = 'inputautofocus',
inputList = 'inputlist',
inputPlaceholders = 'inputplaceholders',
inputMaxlength = 'inputmaxLength',
inputMultiple = 'inputmultiple',
inputPattern = 'inputpattern',
inputRequired = 'inputrequired',
Expand Down Expand Up @@ -502,6 +503,10 @@ window.Modernizr = (function(window,doc){
tests[inputPlaceholders] = function() {
return 'placeholder' in f;
};

test[inputMaxlength] = function() {
return 'maxLength' in f;
};

tests[inputMultiple] = function() {
return 'multiple' in f;
Expand Down

0 comments on commit f17b5ca

Please sign in to comment.