Skip to content

Commit

Permalink
Added test for the HTML5 meter element.
Browse files Browse the repository at this point in the history
Tested in Opera [9,10,11], Safari 5, Chrome 11, Firefox [3.6, 4, 5] and MSIE 8.
  • Loading branch information
StefanWallin committed May 30, 2011
1 parent bd256b8 commit a92f7d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modernizr.js
Expand Up @@ -850,6 +850,12 @@ window.Modernizr = (function( window, document, undefined ) {
return document.createElement('progress').max != undefined;
};

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


// End of test definitions
// -----------------------

Expand Down

0 comments on commit a92f7d9

Please sign in to comment.