Skip to content

Commit

Permalink
adding test for multiple attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Dec 4, 2009
1 parent eb279f3 commit d01c15c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ window.Modernizr = (function(window,doc){
offline = 'offline',
inputAutofocus = 'inputautofocus',
inputPlaceholders = 'inputplaceholders',
inputMultiple = 'inputmultiple',

// list of property values to set for css tests
setProperties = ' -o- -moz- -ms- -webkit- '.split(' '),
Expand Down Expand Up @@ -490,6 +491,9 @@ window.Modernizr = (function(window,doc){
return 'placeholder' in f;
};

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

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

0 comments on commit d01c15c

Please sign in to comment.