mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 15:41:05 +00:00
22 lines
653 B
JavaScript
22 lines
653 B
JavaScript
/*!
|
|
{
|
|
"name": "input formaction",
|
|
"property": "inputformaction",
|
|
"aliases": ["input-formaction"],
|
|
"notes": [{
|
|
"name": "WHATWG Spec",
|
|
"href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction"
|
|
}, {
|
|
"name": "Wufoo demo",
|
|
"href": "https://www.wufoo.com/html5/formaction-attribute/"
|
|
}],
|
|
"polyfills": ["webshims"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detect support for the formaction attribute on form inputs
|
|
*/
|
|
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
|
|
Modernizr.addTest('inputformaction', !!('formAction' in createElement('input')), {aliases: ['input-formaction']});
|
|
});
|