Skip to content

Commit

Permalink
Merge pull request #1080 from patrickkettner/formAction
Browse files Browse the repository at this point in the history
add formaction test
  • Loading branch information
patrickkettner committed Dec 11, 2013
2 parents d80f98b + 37bd554 commit a229f38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions feature-detects/input/formaction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*!
{
"name": "input formaction",
"property": "inputformaction",
"aliases": ["input-formaction"],
"notes": [{
"name": "WHATWG Spec",
"href": "http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#attr-fs-formaction"
}, {
"name": "Wufoo demo",
"href": "http://www.wufoo.com/html5/attributes/13-formaction.html"
}],
"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'] });
});
1 change: 1 addition & 0 deletions lib/config-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"test/img/webp",
"test/indexedDB",
"test/input",
"test/input/formaction",
"test/inputsearchevent",
"test/inputtypes",
"test/intl",
Expand Down

0 comments on commit a229f38

Please sign in to comment.