Skip to main content

Bug Tracker

Side navigation

#8410 closed bug (duplicate)

Opened March 01, 2011 10:14AM UTC

Closed March 30, 2011 05:23PM UTC

Last modified March 30, 2011 05:23PM UTC

Selecting of checkboxes different under 1.4.4 and 1.5 or above

Reported by: LaySoft Owned by: LaySoft
Priority: low Milestone: 1.next
Component: selector Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

I have two checkboxes:

<input type="checkbox" id="x"/>

<input type="checkbox" id="x:y"/>

under jQuery 1.4.4

$(':checkbox[id^=x:]').attr('checked','checked');

and

$(':checkbox[id^=x\\:]').attr('checked','checked');

checks only second checkbox.

But under jQuery 1.5 and 1.5.1 checks both checkboxes.

Attachments (0)
Change History (8)

Changed March 01, 2011 09:36PM UTC by addyosmani comment:1

#8411 is a duplicate of this ticket.

Changed March 01, 2011 09:41PM UTC by addyosmani comment:2

component: unfiledselector
owner: → LaySoft
priority: undecidedlow
status: newpending

I've created a test case based on what you've provided http://jsfiddle.net/addyosmani/28uJG/ which appears to be working fine using jQuery 1.5 and 1.5.1 in both Firefox and Chrome. 1.4.4 did have issues however we've since made additional patches to address this.

Could you confirm which browser you're attempting to test with?. If not, we may not be able to assist further and this ticket will be closed.

Changed March 02, 2011 08:14AM UTC by LaySoft comment:3

status: pendingnew

Sorry i forgot the browser. But something wrong with the bug tracker posting mechanism, because stripped "^" characters from my code. Now i created a test with jsFiddle: http://jsfiddle.net/jHgHD/

I tested it with FF 4.0b12, Chrome 9, Opera 11, IE9, and all of them produced the error.

Changed March 02, 2011 08:22AM UTC by LaySoft comment:4

_comment0: Sorry stripped again. The stripped character is caret-circumflex, ascii 94.1299062120296487
_comment1: Sorry, stripped again :) The stripped character is caret-circumflex, ascii 94.1300895150448852
_comment2: Sorry, stripped again :) The stripped character is caret-circumflex, ascii 94.^1300895201913886

Sorry, stripped again :) The stripped character is caret-circumflex, ascii 94.

Changed March 30, 2011 05:21PM UTC by dmethvin comment:5

resolution: → worksforme
status: newclosed

This seems to be working fine with both 1.5.1 and edge; both check boxes are checked on FF 3.6 and IE8/9.

Changed March 30, 2011 05:22PM UTC by rwaldron comment:6

resolution: worksforme
status: closedreopened

Changed March 30, 2011 05:23PM UTC by rwaldron comment:7

resolution: → duplicate
status: reopenedclosed

Changed March 30, 2011 05:23PM UTC by rwaldron comment:8

Duplicate of #8229.