Bug Tracker

Changes between Version 1 and Version 2 of Ticket #7334, comment 3


Ignore:
Timestamp:
Oct 27, 2010, 5:00:24 PM (9 years ago)
Author:
jitter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7334, comment 3

    v1 v2  
    66I think jQuery is correct in returning nothing for `.children( 'ul > li' )` as no immediate child can satisfy this selector.
    77
    8 Assume some `ul` is an immediate child of some element in the jQuery object. This selector basically tells jQuery to do the following.
     8Even if jQuery internally does find the `li`'s which are children of `ul`'s that are immediate children of the element in question, it shouldn't return them (or should it?) as these `li`'s ain't immediate children of the element in question.
     9
     10----
     11
     12Assume some `ul` is an immediate child of some element in the jQuery object. This selector IMHO tells jQuery to do the following.
    913
    1014Give me all immediate children of the element in question which are of type `ul` and are at the same time of type `li` and an immediate child of an `ul` which is itself an immediate child of the element in question.