Skip to main content

Bug Tracker

Side navigation

#7413 closed bug (invalid)

Opened November 05, 2010 12:15PM UTC

Closed April 26, 2011 01:29PM UTC

Last modified May 08, 2011 06:42AM UTC

Browser inconsistencies return of jQuery.isEmptyObject

Reported by: rfernandes@alunos.isel.ipl.pt Owned by: rwaldron
Priority: low Milestone: 1.next
Component: core Version: 1.6b1
Keywords: Cc:
Blocked by: Blocking:
Description
  • Firefox 3.6 (and 4b7) returns:

jQuery.isEmptyObject("test") // false

  • IE7 returns:

jQuery.isEmptyObject("test") // true

Did not test other browsers or versions but can test if requested

As normal IE is the suspect here...

Attachments (0)
Change History (13)

Changed November 05, 2010 01:11PM UTC by rwaldron comment:1

owner: → rwaldron
status: newassigned

Confirmed!

Changed November 09, 2010 09:23PM UTC by snover comment:2

description: * Firefox 3.6 (and 4b7) returns: \ jQuery.isEmptyObject("test") // false \ * IE7 returns: \ jQuery.isEmptyObject("test") // true \ \ Did not test other browsers or versions but can test if requested \ \ As normal IE is the suspect here...* Firefox 3.6 (and 4b7) returns: \ `jQuery.isEmptyObject("test") // false` \ * IE7 returns: \ `jQuery.isEmptyObject("test") // true` \ \ Did not test other browsers or versions but can test if requested \ \ As normal IE is the suspect here...

Changed November 09, 2010 09:36PM UTC by rwaldron comment:3

Changed November 09, 2010 09:37PM UTC by john comment:4

milestone: 1.51.4.5
owner: rwaldronjohn

Let's tackle this in 1.4.5 and use hasOwnProperty.

Changed December 09, 2010 05:32PM UTC by john comment:5

component: unfiledcore
priority: undecidedlow
resolution: → fixed
status: assignedclosed
version: 1.4.31.4.4

Landed.

Changed December 09, 2010 06:08PM UTC by john comment:6

resolution: fixed
status: closedreopened

The patch causing problems in jQuery.param, backed out.

Changed December 10, 2010 04:23AM UTC by snover comment:7

owner: johnrwaldron
status: reopenedassigned

Changed January 17, 2011 06:53PM UTC by dmethvin comment:8

milestone: 1.4.51.5

Changed April 17, 2011 05:17PM UTC by timmywil comment:9

milestone: → 1.6
version: 1.4.41.6b1

Confirmed this bug is still present in 1.6b1. http://jsfiddle.net/timmywil/Q9nUZ/

Changed April 25, 2011 07:27PM UTC by john comment:10

milestone: 1.61.next

Changed April 25, 2011 11:03PM UTC by rwaldron comment:11

Changed April 26, 2011 01:29PM UTC by rwaldron comment:12

keywords: → needsdocs
resolution: → invalid
status: assignedclosed

Best patch ever === no patch at all.

Changed May 08, 2011 06:42AM UTC by addyosmani comment:13

keywords: needsdocs

Docs updated to emphasize $.isEmptyObject should always be called with a real object.