Skip to main content

Bug Tracker

Side navigation

#308 closed bug (worksforme)

Opened October 24, 2006 11:12AM UTC

Closed November 17, 2006 06:57PM UTC

Last modified June 19, 2007 07:58AM UTC

Making jquery 1.0.2 work in Firefox 2.0 ...

Reported by: sledent@gmail.com Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: javascript construction Cc:
Blocked by: Blocking:
Description

// Don't know if it is really a bug of jquery or one of javascript 1.7 !???

But it seams that the javascript construction:

if ( obj.constructor == String )

does not work all the times in firefox 2.0. But replacing it with:

if ( (typeof obj) = 'string') || (obj.constructor == String ))

it solves the problem!

I found this construction 3 times in the version 1.0.2

of jquery !!!

Attachments (0)
Change History (3)

Changed October 26, 2006 07:51PM UTC by john comment:1

Can you provide some examples of this? I have not been able to duplicate this, at all. Additionally, JavaScript 1.7 is not enabled in Firefox by default, so that's not the problem.

Changed November 17, 2006 06:57PM UTC by john comment:2

resolution: → worksforme
status: newclosed

Not able to duplicate this, closing.

Changed November 26, 2006 05:52PM UTC by anonymous comment:3

The only time this happens is after passing an argument to flash via ExternalInterface. It's a firefox2 bug: https://bugzilla.mozilla.org/show_bug.cgi?id=361370

However, changing all checks on the constructor to a typeof check as suggested works around this problem. Anyone know if there are consequences to doing this that might not be obvious?