Skip to content

Commit

Permalink
Initial HTML Media Capture attribute test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sören Kornetzki committed Apr 20, 2013
1 parent 429cb96 commit 160cc2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions feature-detects/forms/capture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// http://www.w3.org/TR/html-media-capture/
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// testing for capture attribute in inputs
Modernizr.addTest('capture', ('capture' in createElement('input')));
});

0 comments on commit 160cc2e

Please sign in to comment.