Skip to main content

Bug Tracker

Side navigation

#5950 closed bug (invalid)

Opened January 26, 2010 11:52PM UTC

Closed November 15, 2010 04:00AM UTC

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

Attachments (0)
Change History (1)

Changed November 15, 2010 04:00AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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