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 comment:1
component: | unfiled → attributes |
---|---|
owner: | → jesseharold@gmail.com |
priority: | undecided → low |
status: | new → pending |
Changed November 18, 2011 06:47PM UTC by comment:2
status: | pending → new |
---|
You can reproduce the bug here, using a true IE7 browser
Changed November 18, 2011 06:54PM UTC by comment:3
Or this one, which uses the boilerplate:
Changed November 18, 2011 09:05PM UTC by comment:4
milestone: | None → 1.7.2 |
---|---|
owner: | jesseharold@gmail.com → timmywil |
status: | new → assigned |
Confirmed. http://jsfiddle.net/timmywil/svvBs/3/
It seems specified is broken for the coords attribute.
Changed February 25, 2012 08:05PM UTC by comment:5
owner: | timmywil → mikesherov |
---|
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.