Opened 14 years ago
Closed 14 years ago
#5081 closed bug (invalid)
An runtime error about invalid argument in IE 7/8 on attr
Reported by: | rock3m | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.4 |
Component: | core | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I found an issue in attr on IE 7/8. IE shows the error happens around the line
if ( set ) elem[ name ] = value;
The problem is in IE it cannot recognise the value of the variable set. I found a solution online,which solved my problem (see below). I'm wondering if this could be a fix.
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
IE will throw an error if you pass invalid arguments, such as:
$("div").css("border", "4km korean dmz");
jQuery doesn't try to catch these, since they are errors and catching the error would just mask them. When these happen in IE8, use the debugger and trace the stack to see what code outside jQuery is passing in the invalid argument.
Note: See
TracTickets for help on using
tickets.
I had the same problem, and on IE8 too. So I solved using this way at line 1060 of jquery-1.3.2.js:
on:
to:
Now it's working like a charm.