Opened 15 years ago
Closed 15 years ago
#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: | |
Blocked by: | Blocking: |
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 (1)
Change History (5)
comment:1 Changed 15 years ago by
need: | Review → Test Case |
---|
Changed 15 years ago by
Attachment: | jqueryTest.htm added |
---|
comment:2 Changed 15 years ago by
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 15 years ago by
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 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.