Skip to main content

Bug Tracker

Side navigation

#11529 closed bug (duplicate)

Opened March 28, 2012 10:58AM UTC

Closed March 28, 2012 11:01AM UTC

Last modified March 28, 2012 09:34PM UTC

.attr("name") returns this instead of the attribute

Reported by: rrajani@acunu.com Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

.attr("name") doesn't return the attribute anymore but returns the jquery object on which the function is being called. This must be related to #10396 which introduced chaining when setting an attribute to undefined. However this has broken the getter version of this function.

Attachments (0)
Change History (3)

Changed March 28, 2012 11:01AM UTC by sindresorhus comment:1

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

Changed March 28, 2012 11:01AM UTC by sindresorhus comment:2

Duplicate of #11527.

Changed March 28, 2012 09:34PM UTC by rwaldron comment:3

Can you list here all the other scripts or jQuery Plugins you're using in your code? Thanks!