Test case for jQuery Ticket 8063

^= selector with no attribute value

by jitter

HTML

<script src="http://code.jquery.com/jquery-1.5rc1.js"></script>
<script src="http://getfirebug.com/firebug-lite-beta.js#startOpened,debug=true"></script>

<input id="a" type="text" value="one" />
<input id="" type="text" value="two" />
<input type="text" value="three" />

JavaScript

$(function() {
    var inps = $("input[id^=]");

    console.log(inps.length);
    for (var i = 0; i < inps.length; i++) {
        console.log(inps[i].value);
    }
})