Side navigation
#3056 closed bug (invalid)
Opened June 17, 2008 03:23PM UTC
Closed June 26, 2008 07:09PM UTC
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 (4)
Changed June 17, 2008 07:32PM UTC by comment:1
need: | Review → Test Case |
---|
Changed June 24, 2008 06:56AM UTC by comment:2
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.
});
Changed June 24, 2008 06:58AM UTC by comment:3
sorry for the bad formatting
this fixes it
$("#my_div").attr({
class: "" This causes a parse error in IE
"class": "" // This fixes it.
});
Changed June 26, 2008 07:09PM UTC by comment:4
resolution: | → invalid |
---|---|
status: | new → closed |
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.