Bug Tracker


Ticket #5950 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

$('> *', 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:


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

comment:1 Changed 3 years ago by dmethvin

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

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

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.