UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

23 lines (22 loc) 579 B
/*! { "name": "input formmethod", "property": "inputformmethod", "notes": [{ "name": "WHATWG Spec", "href": "https://html.spec.whatwg.org/multipage/forms.html#attr-fs-formmethod" }, { "name": "Wufoo demo", "href": "https://www.wufoo.com/html5/attributes/14-formmethod.html" }], "polyfills": [ "webshims" ] } !*/ /* DOC Detect support for the formmethod attribute on form inputs */ define(['Modernizr', 'createElement'], function(Modernizr, createElement) { Modernizr.addTest('inputformmethod', !!('formMethod' in createElement('input'))); });