Opened 14 years ago
Closed 12 years ago
#4658 closed bug (worksforme)
checked checkboxes array bug in ie8
Reported by: | anil.konsal | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.next |
Component: | selector | Version: | 1.3.2 |
Keywords: | ie8 checkbox | Cc: | |
Blocked by: | Blocking: |
Description
$("input[type=checkbox][checked]").length always returns 0 in ie8, but the same works fine in FF3. Pls check.
Attachments (2)
Change History (7)
comment:1 Changed 14 years ago by
Keywords: | ie8 checkbox added |
---|
comment:2 Changed 14 years ago by
Component: | core → selector |
---|---|
Owner: | set to john |
Also, IE8 version 8.0.6001.18702.
comment:3 Changed 12 years ago by
Milestone: | 1.4 |
---|---|
Status: | new → open |
http://jsfiddle.net/dmethvin/wDbtn/
jsfiddle update of the attached test case. Basically, the .attr() results and dynamic .checked *property* seem to be accurate on all platforms but the *attribute* is not always updated.
comment:4 Changed 12 years ago by
Milestone: | → 1.next |
---|
comment:5 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | open → closed |
This has been fixed in jQuery 1.6.
Note: See
TracTickets for help on using
tickets.
I have attached an HTML file that tries several different permutations of checkboxes with different checked states. Some are set by virtue of an attribute; others are set by code. The test case is attached.
In IE8 on XP SP2, it looks like the attached screen shot. All the elements that had a checked *attribute* continue to be sensed as checked by IE8, and the one element that was originally unchecked isn't detected despite having its checked *property* set before the selector was run. If the checked attribute is removed using
.removeAttr()
the selector doesn't find it as expected.This looks like a Sizzle issue so I've reassigned it there.