Bug Tracker

Modify

Ticket #9252 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

Internet Explorer 9.0 crashes when removing an attribute that contains ":", if it's not set already

Reported by: aertmann@… Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description

Internet Explorer crashes (page crashes completely, and is reloaded) if you use jQuery.removeAttr('test:attr'); if the attribute test:attr is not set. This only happens with attributes that contains ":". This is probably an internet explorer bug, but there's an easy fix to prevent this from happening since it's pretty bad, so it could be implemented in the jQuery removeAttr function.

if(typeof jQuery(this).attr(value) !== 'undefined' && jQuery(this).attr(value) !== false) {

return;

}

You get the just of it..

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to attributes

No crash or error happens for me.  http://jsfiddle.net/timmywil/R3U8B/

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.