JSFiddle - React, Tailwind, and code Playground

by Mathias Bynens

HTML

<input type=search>

JavaScript

alert([
    'search: ' + $('input[type="search"]').length, // 0 in IE7
    'text: ' + $('input[type="text"]').length // 1 in IE7
].join('\n'));