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