Skip to main content

Bug Tracker

Side navigation

#966 closed bug (worksforme)

Opened February 15, 2007 09:33PM UTC

Closed February 16, 2007 01:55PM UTC

curCSS: elem.style is undefined in Firefox

Reported by: john@recaffeinated.c Owned by:
Priority: major Milestone:
Component: core Version: 1.1
Keywords: Cc:
Blocked by: Blocking:
Description

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;
Attachments (0)
Change History (1)

Changed February 16, 2007 01:55PM UTC by brandon comment:1

resolution: → worksforme
status: newclosed

Please feel free to reopen with a test case.