Bug Tracker

Modify

Ticket #7491 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

add click function error in IE8

Reported by: wangxing.pku@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

The original html source is: <img id="nextmusic" src="/static/pic/next.gif"/>

I use jquery to add function. $("#nextmusic").click(nextmusic);

I get the processed html by using the debug tool provide by MS and get: <img id="nextmusic" src="/static/pic/next.gif" complete="complete" jQuery1289576534211="2"/>

It works well on chrome.

Change History

comment:1 Changed 3 years ago by ajpiano

  • Status changed from new to closed
  • Resolution set to invalid

jQuery currently does add that crazy attribute to elements in IE to which it has bound events. It is an unfortunate side effect that we hope to eventually get rid of, but it is not a bug with .click().

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.