Bug Tracker

Opened 16 years ago

Closed 16 years ago

#966 closed bug (worksforme)

curCSS: elem.style is undefined in Firefox

Reported by: [email protected] Owned by:
Priority: major Milestone:
Component: core Version: 1.1
Keywords: Cc:
Blocked by: Blocking:


Everything worked fine in Safari, but Firefox kept catching an error (with Firebug) and wouldn't show menus using the jdMenu plugin. Maybe my debugging skills aren't quite up to par since I'm new to jQ. I'm assuming jQ should handle this error regardless of where the problem occurs. I just pulled the jQ file out of svn (Rev 1339, 2007-02-13 20:49:28 -0500 (Tue, 13 Feb 2007)) and tried the uncompressed js directly from the site. Both had the same results. Below is my debug info from Firebug and my fix.

Firebug stopped at line 1386 (my numbering might be off a bit) if (!force && elem.style[prop]) { the elem.style is undefined. Here's the debug info:

this	function()
cur	undefined
elem	Document list
force 	undefined
newProp	undefined
prop	"overflow"
ret 	undefined

At line 1377 I added this:

		if (elem.style == undefined)	
			return undefined;

Change History (1)

comment:1 Changed 16 years ago by brandon

Resolution: worksforme
Status: newclosed

Please feel free to reopen with a test case.

Note: See TracTickets for help on using tickets.