Bug Tracker

Modify

Ticket #2401 (closed bug: invalid)

Opened 6 years ago

Last modified 5 years ago

removeAttr does not working in IE6

Reported by: gsobrinho Owned by:
Priority: minor Milestone: 1.2.4
Component: plugin Version: 1.2.3
Keywords: attr, removeAttr Cc:
Blocking: Blocked by:

Description

Hi,

I'm developing an plugin and tryed to use similar code:

return this.each(function()
{
  $(this).removeAttr('alt');
}

Its working in FF2, but not in IE6. The broswer dont show errors in JS code. The attr is not removed!

If i use:

return this.each(function()
{
  $(this).attr('alt', '');
}

This "remove" the attr and work in both browsers. Check this please...

Change History

comment:1 Changed 5 years ago by dmethvin

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

Please reopen with a complete test case including code and html.

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.