forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Modernizr#1114 from calweb/input-search-event
added test for custom search event for input with type of search
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters