UNPKG

modernizr

Version:

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

24 lines (23 loc) 705 B
/*! { "name": "input formenctype", "property": "inputformenctype", "aliases": ["input-formenctype"], "notes": [{ "name": "WHATWG Spec", "href": "https://html.spec.whatwg.org/multipage/forms.html#attr-fs-formenctype" }, { "name": "Wufoo demo", "href": "https://www.wufoo.com/html5/attributes/16-formenctype.html" }], "polyfills": [ "html5formshim" ] } !*/ /* DOC Detect support for the formenctype attribute on form inputs, which overrides the form enctype attribute */ define(['Modernizr', 'createElement'], function(Modernizr, createElement) { Modernizr.addTest('inputformenctype', !!('formEnctype' in createElement('input')), {aliases: ['input-formenctype']}); });