Skip to main content

Bug Tracker

Side navigation

#9871 closed bug (duplicate)

Opened July 20, 2011 04:41PM UTC

Closed July 20, 2011 05:23PM UTC

Last modified July 20, 2011 09:17PM UTC

removeAttr breaking chained functions in IE7

Reported by: Motty Owned by:
Priority: low Milestone: None
Component: event Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Using removeAttr() seems to ignore other chained functions in jQuery 1.6.1+


Also, the input doesn't get focused in the main demo, but the val does change:

It works fine when using 1.5.2 and older versions of jQuery

Attachments (0)
Change History (8)

Changed July 20, 2011 05:23PM UTC by timmywil comment:1

component: unfiledevent
priority: undecidedlow
resolution: → duplicate
status: newclosed

I don't see a problem with this one:

However, the problem with the focus in IE7 is a known issue and patches are welcome. The behavior may change in the event rewrite for 1.7.

Changed July 20, 2011 05:23PM UTC by timmywil comment:2

Duplicate of #8679.

Changed July 20, 2011 08:54PM UTC by Motty comment:3

_comment0: How is this a duplicate of #8679?1311195579672481

How is this a duplicate of #8679? When I run this demo I see both outputs as zero in IE7.

Changed July 20, 2011 09:06PM UTC by timmywil comment:4

@Motty: this ticket is really reporting two separate issues. The first is worksforme because I can't reproduce a problem. The second is a duplicate of #8679 because it is due to calling focus in the callback.

Changed July 20, 2011 09:09PM UTC by timmywil comment:5

Now seeing your edited comment. I see 1 then 0 in IE7. Not sure what is different then.

Changed July 20, 2011 09:10PM UTC by Motty comment:6

_comment0: This is what I'm seeing:

This is what I'm seeing: ... I am using IE9 in IE7 compatibility mode. Not sure if that's the difference.

Changed July 20, 2011 09:15PM UTC by Motty comment:7

Interestingly, if I put the removeAttr before the addClass, it works. I'll just use that as a workaround then. Thanks!

Changed July 20, 2011 09:17PM UTC by timmywil comment:8

@Motty: yea that's really strange. Your pic looks an awful lot like IE9, but I tested IE9 as well and it works for me there too so I'm not sure how to reproduce.