summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/elem-progress-meter.js
blob: cfa4bdf40162cc12035ff846904c55aedf365bed (plain)
1
2
3
4
5
6
7
8
9
10
11
//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;
});