Bug Tracker

Ticket #5950 (closed bug: invalid)

Opened 6 years ago

Last modified 5 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 5 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.

Note: See TracTickets for help on using tickets.