Skip to content

Commit

Permalink
adding test for autocomplete 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 af52758 commit 7565f54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modernizr.js
Expand Up @@ -119,6 +119,7 @@ window.Modernizr = (function(window,doc){
sessionStorage = 'sessionstorage',
webWorkers = 'webworkers',
offline = 'offline',
inputAutocomplete = 'inputautocomplete',
inputAutofocus = 'inputautofocus',
inputPlaceholders = 'inputplaceholders',
inputMultiple = 'inputmultiple',
Expand Down Expand Up @@ -483,6 +484,10 @@ window.Modernizr = (function(window,doc){
return !!window.applicationCache;
};

tests[inputAutocomplete] = function() {
return 'autocomplete' in f;
}

tests[inputAutofocus] = function() {
return 'autofocus' in f;
};
Expand Down

0 comments on commit 7565f54

Please sign in to comment.