Bug Tracker

Modify

Ticket #10828 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

attr("coords") returns undefined in IE7

Reported by: jesseharold@… Owned by: mikesherov
Priority: low Milestone: 1.7.2
Component: attributes Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

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"));

});

Change History

comment:1 Changed 2 years ago by timmywil

  • Owner set to jesseharold@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to attributes

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.

comment:2 Changed 2 years ago by jesseharold@…

  • Status changed from pending to new

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

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

comment:3 Changed 2 years ago by jesseharold@…

Or this one, which uses the boilerplate:

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

comment:4 Changed 2 years ago by timmywil

  • Owner changed from jesseharold@… to timmywil
  • Status changed from new to assigned
  • Milestone changed from None to 1.7.2

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

It seems specified is broken for the coords attribute.

comment:5 Changed 2 years ago by mikesherov

  • Owner changed from timmywil to mikesherov

comment:7 Changed 2 years ago by Mike Sherov

  • Status changed from assigned to closed
  • Resolution set to fixed

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

Changeset: da02e190b5fa57d56a6561ac64209c36c64c4ecd

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.