Bug Tracker

Opened 13 years ago

Closed 12 years ago

#5199 closed bug (invalid)

Problem with Selector using

Reported by: evg Owned by: john
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: selector Cc: evg, john
Blocked by: Blocking:


It's wonderful soluton with 'selector' property. But it doesn't work fully: It works:

var selector = $('*').find('div').selector; returns '* div'

$(selector); returns correct set

Doesn't work:

var selector = $('*').find('div').parent('body').selector; returns '* div.parent(body)'

$(selector); returns empty set

I think $($any_set.selector) should work. It's very good idea in my opinion.

Change History (3)

comment:1 Changed 13 years ago by flesler

Cc: evg john added
Owner: set to john

I was talking about this with John. Reassigning.

comment:2 Changed 13 years ago by dmethvin

I think $($any_set.selector) should work.

If the set was created using arbitrary filter function code I don't think this is achievable.

comment:3 Changed 12 years ago by dmethvin

Resolution: invalid
Status: newclosed

.selector is not guaranteed to be a string that can be used to recreate the original filter set.

Note: See TracTickets for help on using tickets.