Skip to main content

Bug Tracker

Side navigation

#2337 closed bug (invalid)

Opened February 13, 2008 07:05PM UTC

Closed May 11, 2008 10:34PM UTC

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:
Blocked by: Blocking:
Description

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.

Attachments (2)
  • index.2.html (1.0 KB) - added by ieure February 13, 2008 07:07PM UTC.

    Markup for the testcase

  • index.html (1.0 KB) - added by ieure February 13, 2008 07:07PM UTC.

    Testcase reproducing the issue.

Change History (2)

Changed February 13, 2008 07:08PM UTC by ieure comment:1

Please ignore index.2.html.

Changed May 11, 2008 10:34PM UTC by flesler comment:2

resolution: → invalid
status: newclosed

#id is a 'find' selector, not a filter. That's why it seeks on the document.

To filter by ID, use [id=foo] instead.