Ticket #5040 (closed bug)
Selector #foo a[href=#x/y] fails in IE7
|Reported by:||michaelmayer||Owned by:||michaelmayer|
|Keywords:||selector, internet explorer, ie7||Cc:|
As described in the summary, $('#foo a[href=#bar/xyz]') returns no elements in IE7, whereas it works as expected with Safari 4 and Firefox 3.5. I could not test it with IE8. It also returns elements, if I change it to $('#foo a:last') for example, so it finds anchor elements, just the attribute selector seems broken for Internet Explorer.
There was a similar bug with input[for=bar], which was broken for IE in jQuery 1.3. See #3794.