Skip to content

Commit

Permalink
Added test for the HTML5 progressbar element.
Browse files Browse the repository at this point in the history
Tested in Opera [9,10,11], Firefox [3.6,4], Safari 5, IE[7,8] and Chrome [9,10,11]
  • Loading branch information
StefanWallin committed May 30, 2011
1 parent 8c459bc commit bd256b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,10 @@ window.Modernizr = (function( window, document, undefined ) {
})('search tel url email datetime date month week time datetime-local number range color'.split(' '));
}


//tests for progressbar-support. All browsers that don't support progressbar returns undefined =)
tests['progressbar'] = function() {
return document.createElement('progress').max != undefined;
};

// End of test definitions
// -----------------------
Expand Down

0 comments on commit bd256b8

Please sign in to comment.