Bug Tracker

Modify

Ticket #755 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

$("foo").find("foo") returns weird results

Reported by: john Owned by:
Priority: major Milestone: 1.1a
Component: core Version: 1.1a
Keywords: Cc:
Blocking: Blocked by:

Description

When an initial selector doesn't return any results, future selectors will simply return an array, of length one, that has a value of undefined. You can test it like so:

$("foo").find("foo") or $("foo").find("div")

Change History

comment:1 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.