Skip to content

Commit

Permalink
adding test for list attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Dec 4, 2009
1 parent 01d9d5a commit 9f891ef
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 @@ -121,6 +121,7 @@ window.Modernizr = (function(window,doc){
offline = 'offline',
inputAutocomplete = 'inputautocomplete',
inputAutofocus = 'inputautofocus',
inputList = 'inputlist',
inputPlaceholders = 'inputplaceholders',
inputMultiple = 'inputmultiple',
inputPattern = 'inputpattern',
Expand Down Expand Up @@ -493,6 +494,10 @@ window.Modernizr = (function(window,doc){
tests[inputAutofocus] = function() {
return 'autofocus' in f;
};

tests[inputList] = function() {
return 'list' in f;
};

tests[inputPlaceholders] = function() {
return 'placeholder' in f;
Expand Down

0 comments on commit 9f891ef

Please sign in to comment.