Doesn't work in Firefox.


This plugin causes the following error when used in Firefox:
uncaught exception: [Exception... "Could not convert JavaScript argument arg 0" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: file:///C:/Users/tcleveng/Desktop/TESTBACKGROUND/jquery-1.3.1.js :: anonymous :: line 12" data: no]
Line 0
The problem is in the getZindex function. When it works up the elements trying to get the correct z-index, firefox throws an exception on obj.css('z-index') when obj is the document object. I have attached a fixed version where I test for this case. In the while loop instead of (obj.length > 0) it uses (obj.get(0) !== jQuery(document).get(0)).

file attachments