Bug Tracker


Ticket #2337 (closed bug: invalid)

Opened 6 years ago

Last modified 6 years ago

jQuery(selector, context) don't work with unbound nodes

Reported by: ieure Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:


If you pass an array of jQuery selection of un-bound (i.e. not present in the page's DOM) nodes, selectors don't work at all.

Looks like a long-standing bug, I can reproduce it in 1.1.4 and 1.2.3.

Testcase attached.


index.2.html Download (1.0 KB) - added by ieure 6 years ago.
Markup for the testcase
index.html Download (1.0 KB) - added by ieure 6 years ago.
Testcase reproducing the issue.

Change History

Changed 6 years ago by ieure

Markup for the testcase

Changed 6 years ago by ieure

Testcase reproducing the issue.

comment:1 Changed 6 years ago by ieure

Please ignore index.2.html.

comment:2 Changed 6 years ago by flesler

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

#id is a 'find' selector, not a filter. That's why it seeks on the document. To filter by ID, use [id=foo] instead.

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.