Permalink
Browse files

Added test for the HTML5 progressbar element.

Tested in Opera [9,10,11], Firefox [3.6,4], Safari 5, IE[7,8] and Chrome [9,10,11]
  • Loading branch information...
1 parent 8c459bc commit bd256b8f49cbeda666e468b6d0f8bff80283b25d @StefanWallin StefanWallin committed May 30, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 modernizr.js
View
@@ -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
// -----------------------

0 comments on commit bd256b8

Please sign in to comment.