Ticket #2532367 (new enhancement)

Reporter


John Mizliso
Opened: 05/31/12
Last modified: 05/31/12
Status: new
Type: enhancement

Owner


Matt Sweeney
Target Release:
Priority:
Summary: Allow the sibling selector '~' to be used with reference to the parent node
Description:

Currently, we can select the direct descendents of a node like so:


node.one('> .someclass');

We have a .sibling() which can be select all siblings, but to select 1 sibling would require us to get the first sibling out of the nodelist.

I propose that we allow '~' to be used with reference to the parent node:


node.one('~ .someclass');

Type: enhancement Observed in Version: 3.6.0pr1
Component: Selector Severity: S3 (normal)
Assigned To: Matt Sweeney Target Release:
Location: Priority:
Tags: selector, node Relates To:
Browsers: All
URL: http://jsfiddle.net/ZcUWw/
Test Information: