Bug Tracker

Opened 14 years ago

Closed 14 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 14 years ago.
unit test to verify fix and catch any future regressions

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by john

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

This has already been fixed in the nightlies.

comment:2 Changed 14 years ago by john

Resolution: worksforme
Status: closedreopened

comment:3 Changed 14 years ago by john

Resolution: fixed
Status: reopenedclosed

Changed 14 years ago by subtlegradient

unit test to verify fix and catch any future regressions

Note: See TracTickets for help on using tickets.