Bug Tracker

Opened 7 years ago

Closed 7 years ago

#11888 closed bug (cantfix)

checkbox remove "checked" dont work in chrome 20

Reported by: evilmoe@… Owned by: evilmoe@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

I use this code:

$('input:checkbox[name=select_all]').click(function(){	
		status = $(this).prop("checked");
		$('input[name^=selector]').each(function () {
			//alert(status);
			if(status)
				//$(this).prop("checked", status);
				this.checked = true;
			else
				 this.checked = false;
		});
	});

This code work in FF but not in Chrome 20. When i use the "prop" i have the same problem.

Change History (7)

comment:1 Changed 7 years ago by Rick Waldron

Owner: set to evilmoe@…
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/

comment:2 Changed 7 years ago by anonymous

Here: http://jsfiddle.net/FrKyN/362/ Dont work in Chrome 20 but in FF.

comment:3 in reply to:  1 Changed 7 years ago by anonymous

Replying to rwaldron:

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/

http://jsfiddle.net/FrKyN/362/

comment:4 Changed 7 years ago by anonymous

When it will be fixed?

comment:5 Changed 7 years ago by dmethvin

Status: pendingopen

I can repro on Chrome 19, I tried to simplify it a bit but it went away. Since it only happens on Chrome you should report it there. We will need to triage the bug, so we can't answer the "when".

comment:6 Changed 7 years ago by evilmoe@…

I did a workaround for this: http://jsfiddle.net/FrKyN/379/ I hope it will be fixed soon. I dont know why it doesnt works with a variable.

comment:7 Changed 7 years ago by dmethvin

Resolution: cantfix
Status: openclosed

This is a bug with Chrome. http://jsfiddle.net/FrKyN/362/

Something is special about the global status variable. It's no jQuery. Report this to Chrome.

Note: See TracTickets for help on using tickets.