UNPKG

modernizr

Version:

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

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