Opened 13 years ago
Closed 12 years ago
#5950 closed bug (invalid)
$('> *', context) works but $('> *', context).live doesn't
Reported by: | deadlyicon | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4.2 |
Component: | event | Version: | 1.4.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
given the following markup:
<ul id="mylist"><li></li><ul>
var mylist_node = $('#mylist')[0];
$('> *', mylist_node) -> [li] (works)
$('> *', mylist_node).live('click', function(){}); live click even't never fires
I've created a failing test here: http://github.com/deadlyicon/jquery/tree/gt-star-selector-with-context-test
Note: See
TracTickets for help on using
tickets.
As documented, .live() should only be used with a standard selector, no context, no traversal methods.