Skip to main content

Bug Tracker

Side navigation

#13573 closed bug (duplicate)

Opened March 06, 2013 11:19AM UTC

Closed March 06, 2013 12:34PM UTC

Last modified October 18, 2013 01:28PM UTC

checked property should be treated specially

Reported by: lionel8000 Owned by:
Priority: undecided Milestone: None
Component: attributes Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

when I used elements.attr("checked",true) it works first time

but when I used elements.attr("checked",true) after a call to elements.removeAttr('checked'); it will not work.

the reason is on line 2405 () of jquery-1.9.1.js before the code

elem.removeAttribute( getSetAttribute ? name : propName ) is called

the elem[propName] = false is called first,whick should be not called for the checked property..

SO the checked property should be treated specially

Attachments (0)
Change History (11)

Changed March 06, 2013 12:34PM UTC by gibson042 comment:1

component: unfiledattributes
resolution: → duplicate
status: newclosed

Duplicate of #13245.

Changed March 06, 2013 01:59PM UTC by dmethvin comment:2

The jQuery 1.9 Upgrade Guide discusses this and the jQuery Migrate plugin warns about it. Every blog post since the 1.9 release in January pleads with people to read the upgrade guide and use the plugin. The download page emphasizes it as well.

Changed May 28, 2013 04:50PM UTC by dmethvin comment:3

#13955 is a duplicate of this ticket.

Changed June 12, 2013 04:31AM UTC by dmethvin comment:4

#14009 is a duplicate of this ticket.

Changed July 25, 2013 02:30PM UTC by dmethvin comment:5

#14182 is a duplicate of this ticket.

Changed August 19, 2013 01:58PM UTC by timmywil comment:6

#14263 is a duplicate of this ticket.

Changed August 21, 2013 02:56PM UTC by timmywil comment:7

#14278 is a duplicate of this ticket.

Changed August 25, 2013 05:52PM UTC by timmywil comment:8

#14297 is a duplicate of this ticket.

Changed August 26, 2013 01:44PM UTC by timmywil comment:9

#14300 is a duplicate of this ticket.

Changed October 13, 2013 12:25PM UTC by dmethvin comment:10

#14416 is a duplicate of this ticket.

Changed October 18, 2013 01:28PM UTC by timmywil comment:11

#14461 is a duplicate of this ticket.