Bug Tracker

Opened 11 years ago

Closed 11 years ago

#4578 closed bug (fixed)

$(undefined) should not return the document

Reported by: subtlegradient Owned by: john
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by john)

$(document.getElementById('not-here')) -> document

$(null) -> document

$(undefined) -> document

$(false) -> document

$() -> document

etc...

Should return an empty set or something to that effect.

This is a very difficult thing to debug.

Attachments (1)

verify_undefined_selector.diff (786 bytes) - added by subtlegradient 11 years ago.
unit test to verify fix and catch any future regressions

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by john

Description: modified (diff)
Resolution: worksforme
Status: newclosed

This has already been fixed in the nightlies.

comment:2 Changed 11 years ago by john

Resolution: worksforme
Status: closedreopened

comment:3 Changed 11 years ago by john

Resolution: fixed
Status: reopenedclosed

Changed 11 years ago by subtlegradient

unit test to verify fix and catch any future regressions

Note: See TracTickets for help on using tickets.