Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

As documented, .live() should only be used with a standard selector, no context, no traversal methods.