diff --git a/feature-detects/inputsearchevent.js b/feature-detects/inputsearchevent.js new file mode 100644 index 0000000000..d7c463d639 --- /dev/null +++ b/feature-detects/inputsearchevent.js @@ -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')); +}); diff --git a/lib/config-all.json b/lib/config-all.json index ba53103aad..9b39878232 100644 --- a/lib/config-all.json +++ b/lib/config-all.json @@ -131,6 +131,7 @@ "test/indexedDB", "test/input", "test/inputtypes", + "test/inputsearchevent", "test/json", "test/lists-reversed", "test/mathml",