Opened 4 years ago

Closed 4 weeks ago

#14683 closed feature (wontfix)

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 (1)

comment:1 Changed 4 weeks ago by dylan

  • Resolution set to wontfix
  • Status changed from new to closed

The CSS working group seems to always punt on the parent or subject selector. CSS Level 4 selectors seem to be stalled (last draft in May, 2013).

While I've wanted a parent selector for more than a decade, given our approach with the lite selector engine, and leveraging querySelector/querySelectorAll, or jquery for Dojo 2, I'm going to close this.

Note: See TracTickets for help on using tickets.