Skip to main content

Bug Tracker

Side navigation

#10828 closed bug (fixed)

Opened November 18, 2011 05:20PM UTC

Closed March 03, 2012 03:13AM UTC

Last modified March 09, 2012 09:54PM UTC

attr("coords") returns undefined in IE7

Reported by: jesseharold@gmail.com Owned by: mikesherov
Priority: low Milestone: 1.7.2
Component: attributes Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Description

I was only able to reproduce this in "true" IE7, not IE8 with IE7 view turned on in the developer tools.

For the same element, .getAttribute("coords") returned the string correctly.

Original code with bug:

jQuery("map area").each(function(index2){

console.log(jQuery(this).attr("coords"));//undefined in IE7

});

Working code:

jQuery("map area").each(function(index2){

console.log(this.getAttribute("coords"));

});

Attachments (0)
Change History (7)

Changed November 18, 2011 05:34PM UTC by timmywil comment:1

component: unfiledattributes
owner: → jesseharold@gmail.com
priority: undecidedlow
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/ Open the link and click to "Fork" (in the top menu) to get started.

Changed November 18, 2011 06:47PM UTC by jesseharold@gmail.com comment:2

status: pendingnew

http://jsfiddle.net/svvBs/1/

You can reproduce the bug here, using a true IE7 browser

Changed November 18, 2011 06:54PM UTC by jesseharold@gmail.com comment:3

Or this one, which uses the boilerplate:

http://jsfiddle.net/pvc7H/1/

Changed November 18, 2011 09:05PM UTC by timmywil comment:4

milestone: None1.7.2
owner: jesseharold@gmail.comtimmywil
status: newassigned

Confirmed. http://jsfiddle.net/timmywil/svvBs/3/

It seems specified is broken for the coords attribute.

Changed February 25, 2012 08:05PM UTC by mikesherov comment:5

owner: timmywilmikesherov

Changed February 25, 2012 08:06PM UTC by mikesherov comment:6

Changed March 03, 2012 03:13AM UTC by Mike Sherov comment:7

resolution: → fixed
status: assignedclosed

Fixes #10828, .attr("coords") returns undefined in IE7

Changeset: da02e190b5fa57d56a6561ac64209c36c64c4ecd