I have the following code:
<div id="foo" align="right">
<button type="button" id="bar" name="bar" title="bar" style="display:none;">bar</button>
</div>
In IE8 $('#bar').is(':hidden') returns false. So I debug the jQuery source code and I found that the problem happens due to the following code:
set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
variable set is not assigned correctly.Can anyone help me? Thanks in advance.
Which version are you running?
Check this bug:
http://bugs.jquery.com/ticket/4512