The website of Ura Design

11 lines
423 B

//By Stefan Wallin
//tests for progressbar-support. All browsers that don't support progressbar returns undefined =)
Modernizr.addTest("progressbar",function(){
return document.createElement('progress').max !== undefined;
});
//tests for meter-support. All browsers that don't support meters returns undefined =)
Modernizr.addTest("meter",function(){
return document.createElement('meter').max !== undefined;
});