Opened 3 years ago
Implementation of Selectors Level 4
|Reported by:||kitsonk||Owned by:||kzyp|
Is it possible to impliment the Selectors Level 4, in particular the parent selector?
The specification for parent selectors can be found here: http://www.w3.org/TR/2011/WD-selectors4-20110929/#subject
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.