From bd256b8f49cbeda666e468b6d0f8bff80283b25d Mon Sep 17 00:00:00 2001 From: Stefan Wallin Date: Mon, 30 May 2011 18:39:22 +0200 Subject: [PATCH] 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] --- modernizr.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modernizr.js b/modernizr.js index 30999ad0d9..9fe7b89fad 100644 --- a/modernizr.js +++ b/modernizr.js @@ -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 // -----------------------