Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added test for custom search event for input with type of search #1114

Merged
merged 1 commit into from
Nov 26, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added test for custom search event for input with type of search
formatting meta

added test for custom search event for input with type of search
  • Loading branch information
calweb committed Nov 25, 2013
commit 51f44174a6165231e7b5a586d277e5171b476d00
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 @@ -128,6 +128,7 @@
"test/indexedDB",
"test/input",
"test/inputtypes",
"test/inputsearchevent",
"test/json",
"test/lists-reversed",
"test/mathml",
Expand Down