JSFiddle - React, Tailwind, and code Playground

HTML

<input type="search" TExt="1">

JavaScript

jQuery.find.selectors.attrHandle['type'] = function(elem) { return elem.getAttribute('type'); };

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