Modify ↓
Ticket #3056 (closed bug: invalid)
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
Change History
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.
});
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.


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.