browsernizr
Version:
Modernizr wrapper for use with browserify
22 lines (20 loc) • 620 B
JavaScript
/*!
{
"name": "input formmethod",
"property": "inputformmethod",
"notes": [{
"name": "WHATWG Spec",
"href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod"
}, {
"name": "Wufoo demo",
"href": "https://www.wufoo.com/html5/formmethod-attribute/"
}],
"polyfills": ["webshims"]
}
!*/
/* DOC
Detect support for the formmethod attribute on form inputs
*/
var Modernizr = require('./../../lib/Modernizr.js');
var createElement = require('./../../lib/createElement.js');
Modernizr.addTest('inputformmethod', !!('formMethod' in createElement('input')));