mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 15:41:05 +00:00
19 lines
594 B
JavaScript
19 lines
594 B
JavaScript
/*!
|
|
{
|
|
"name": "input[capture] Attribute",
|
|
"property": "capture",
|
|
"tags": ["video", "image", "audio", "media", "attribute"],
|
|
"notes": [{
|
|
"name": "W3C Draft Spec",
|
|
"href": "https://www.w3.org/TR/html-media-capture/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
When used on an `<input>`, this attribute signifies that the resource it takes should be generated via device's camera, camcorder, sound recorder.
|
|
*/
|
|
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
|
|
// testing for capture attribute in inputs
|
|
Modernizr.addTest('capture', ('capture' in createElement('input')));
|
|
});
|