Bug Tracker

Ticket #966 (closed bug: worksforme)

Opened 8 years ago

Last modified 8 years ago

curCSS: elem.style is undefined in Firefox

Reported by: john@… Owned by:
Priority: major Milestone:
Component: core Version: 1.1
Keywords: Cc:
Blocking: Blocked by:

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;

Change History

comment:1 Changed 8 years ago by brandon

  • Status changed from new to closed
  • Resolution set to worksforme

Please feel free to reopen with a test case.

Note: See TracTickets for help on using tickets.