#6713 closed bug (invalid)
jQuery v1.4.2 Internet Explorer Bug
Reported by: | fowardslash | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.2 |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | 1.4.2 | Cc: | |
Blocked by: | Blocking: |
Description
On line 116 of the minified version, there is an error which breaks the process in internet explorer.
The current line is:
if(e)f[b]=d;return f[b];
Internet Explorer says:
Invalid argument line 116 character 165
The solution to this problem is:
if(e) return d;
apparently IE doesn't like that f[b] is undefined?
Change History (6)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please reopen with a simple test case that demonstrates the problem. We need to know the *cause* before we look for a solution.
comment:3 follow-ups: 4 5 Changed 12 years ago by
In case that d is equal to "undefinedpx" IE has an error here.
I changed that expression into: if(e&&d!="undefinedpx")f[b]=d;
Now every thing works fine.
comment:4 Changed 12 years ago by
Priority: | → undecided |
---|
Replying to [email protected]…:
In case that d is equal to "undefinedpx" IE has an error here.
I changed that expression into: if(e&&d!="undefinedpx")f[b]=d;
Now every thing works fine.
You modified the minified version of jQuery??
Submit a reduced test case instead. How to report bugs
comment:5 Changed 11 years ago by
Replying to [email protected]…:
In case that d is equal to "undefinedpx" IE has an error here.
I changed that expression into: if(e&&d!="undefinedpx")f[b]=d;
Now every thing works fine.
After modifying also i am getting the same error. Inplace of that i have used if(e) return d; Then i am not getting any error. but the background styles, borders (css) not applied correctly. Please suggest what to do asap.
comment:6 Changed 9 years ago by
Instead of 'undefinedpx' just use 'undefined' as the width you are passing might not have 'px' in if(e&&d!="undefinedpx")f[b]=d;
While the solution I proposed does not create an error in internet explorer, it does affect the jquery ui. I'm using the ui dropdown, and the positioning has been effected by not returning f[b]. This line seems to be css related, and quite frankly, it's over my head. I'm going to address the issue via my own stylesheet, however this is a bug for internet explorer when using the jquery ui.