jQuery type="select-one" fails
REF: #8646 and http://jsfiddle.net/addyosmani/Ldjap/1/ Even properly quoted selectors that include type="select-one" fail for <SELECT> elements. $('select[type="select-one"]');
by rwaldron
HTML
<select id="fontWeight">
<option value="sans-serif">sans-serif</option>
<option value="cursive">cursive</option>
<option value="fantasy">fantasy</option>
<option value="monospace">monospace</option>
<option value="serif">serif</option>
</select>
JavaScript
console.log($('select').attr('id'));
// In this context, 'type' is a DOM property, which are unfortunately accessible by attr ( will change in 1.6 with attrHooks )
console.log($('select').attr('type'));
// Knowing the above, this selector will not produce a match when it passes through querySelectorAll in sizzle.
console.log($('select[type="select-one"]').attr('id'));