Skip to content

Commit

Permalink
Merge pull request Modernizr#1114 from calweb/input-search-event
Browse files Browse the repository at this point in the history
added test for custom search event for input with type of search
  • Loading branch information
paulirish committed Nov 26, 2013
2 parents 889adbf + 91cbd1b commit fb51f59
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions feature-detects/inputsearchevent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*!
{
"name": "input[search] search event",
"property": "search",
"tags": ["input","search"],
"authors": ["Calvin Webster"],
"notes": [{
"name": "Wufoo demo",
"href": "http://www.wufoo.com/html5/types/5-search.html?"
}, {
"name": "CSS Tricks",
"href": "http://css-tricks.com/webkit-html5-search-inputs/"
}]
}
!*/
/* DOC
There is a custom `search` event implemented in webkit browsers when using an `input[search]` element.
*/
define(['Modernizr', 'hasEvent'], function( Modernizr, hasEvent ) {
Modernizr.addTest('inputsearchevent', hasEvent('search'));
});
1 change: 1 addition & 0 deletions lib/config-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"test/indexedDB",
"test/input",
"test/inputtypes",
"test/inputsearchevent",
"test/json",
"test/lists-reversed",
"test/mathml",
Expand Down

0 comments on commit fb51f59

Please sign in to comment.