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 )
$(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)
Change History (4)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
comment:2 Changed 14 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Changed 14 years ago by
Attachment: | verify_undefined_selector.diff added |
---|
unit test to verify fix and catch any future regressions
Note: See
TracTickets for help on using
tickets.
This has already been fixed in the nightlies.