Opened 14 years ago
Closed 14 years ago
#3794 closed bug (fixed)
Attribute filter does not work with a label element in IE 7 (jQuery 1.3 Beta 2)
Reported by: | mtafelmayer | Owned by: | john |
---|---|---|---|
Priority: | critical | Milestone: | 1.3 |
Component: | selector | Version: | 1.2.6 |
Keywords: | jQuery 1.3 Beta 2 | Cc: | |
Blocked by: | Blocking: |
Description
The attribute filter does not work with a label element in IE 7 (jQuery 1.3 Beta 2).
The following works in FF 3, but not in IE 7: $('label[for=username]');
But this works in IE 7: $('label[lang=en]');
The HTML source: <form method="post" action="">
<fieldset>
<label for="username" lang="en">Username</label> <input id="username" type="text" name="username" value="" />
</fieldset>
</form>
This was also the case with the jQuery 1.3 Beta 1. But it worked with jQuery 1.2.6.
Note: See
TracTickets for help on using
tickets.
Should be fixed now: http://github.com/jeresig/sizzle/commit/c6127d0fc2ddbda13c1b00609190a67b54f23475
Will be pushing in to jQuery soon.