Opened 4 years ago

#14683 new feature

Implementation of Selectors Level 4

Reported by: kitsonk Owned by: kzyp
Priority: undecided Milestone: tbd
Component: Query Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:


Is it possible to impliment the Selectors Level 4, in particular the parent selector?

The specification for parent selectors can be found here:

That would allow for something like:

var parents = query("$[data-dojo-type]");

To return all the immediate parents of any node with the attribute data-dojo-type. Currently there is no way to look "upward" with the query selector syntax.

While dojo/NodeList-traverse adds in the concept of .parent() and .parents() it would be useful to have the concept directly in the selectors.

Change History (0)

Note: See TracTickets for help on using tickets.