Bug Tracker

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: [email protected] Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:


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.


myVar = $('#myDropDown'); //Note that .val() is omitted

if (myVar == 0) {

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]

Change History (1)

comment:1 Changed 12 years ago by dmethvin

Resolution: invalid
Status: newclosed

This is a browser bug and should be reported to Safari developers.

Note: See TracTickets for help on using tickets.