Skip to main content

Bug Tracker

Side navigation

#9122 closed bug (invalid)

Opened May 05, 2011 01:57PM UTC

Closed May 05, 2011 02:18PM UTC

attr() returns "undefined" for rowspan and colspan for cells where they aren't explicitly set

Reported by: anonymous Owned by:
Priority: low Milestone:
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

For all browsers besides Internet Explorer I tested, jQuery 1.6 will return undefined when getting colspan or rowspan for a td where it isn't explicitely set.

In Internet Explorer browsers the return value is 1, which is the way it used to be in all browsers prior to jQuery 1.6.

Tested browsers were Firefox versions 3.6 and 4.0, Opera 11, Chrome 11, IE 6, 7 and 8.

Attachments (0)
Change History (1)

Changed May 05, 2011 02:18PM UTC by timmywil comment:1

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

This is the expected behavior as of jQuery 1.6, which removes the ambiguity between attributes and properties. If the attribute has not been set, attr will return undefined, but prop will return the corresponding property. The docs have been updated and please check out the new prop method.