Bug Tracker

Modify

Ticket #3056 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

bug in attr

Reported by: vevni133 Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: attr Cc:
Blocking: Blocked by:

Description

i found a bug trying to use this

$("#my_div").attr({

style: "", class: ""

});

IE7 and 6 sucks when i use that code FF no problem.

Attachments

jqueryTest.htm Download (634 bytes) - added by pr 5 years ago.

Change History

comment:1 Changed 5 years ago by flesler

  • need changed from Review to Test Case

Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem. Also, describe what do you mean by "sucks". It errors, ignores it, closes down... ? Thanks.

Changed 5 years ago by pr

comment:2 Changed 5 years ago by pr

The problem is not related to jQuery but rather with IE (tried on IE6)

the issue seems to be a parse error when IE sees the class.

this fixes the issue and works as expected (removes the class)

$("#my_div").attr({

class: "" This causes a parse error in IE "class": "" This fixes it.

});

comment:3 Changed 5 years ago by pr

sorry for the bad formatting this fixes it $("#my_div").attr({

class: "" This causes a parse error in IE

"class": "" This fixes it.

});

comment:4 Changed 5 years ago by flesler

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

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.