Opened 12 years ago
Closed 12 years ago
#8700 closed bug (invalid)
Using conditional expression on drop down menu causes Safari to crash
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you accidentally set a variable to a dropdown element, instead of the value, and then try using a conditional expression on it, Safari crashes.
Example:
myVar = $('#myDropDown'); //Note that .val() is omitted if (myVar == 0) { doSomething(); }
Obviously this is my fault (or any developer) for not being careful. But it shouldn't crash the browser. Firefox gives the following error:
Error: uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://localhost/npsd/common/js/jquery-1.4.2.min.js :: f :: line 132" data: no]
Note: See
TracTickets for help on using
tickets.
This is a browser bug and should be reported to Safari developers.