This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Need to investigate use cases for this. There was some prior discussion of this in IRC too with some suggestions. http://krijnhoetmer.nl/irc-logs/whatwg/20080415#l-831 <Hixie> document.querySelector('a x').querySelector('b x') is equivalent to 'a b x, b a x' which can get much more complex
Call this filterSelector() or something more appropriate. Feedback based on JQuery indicates that NodeList.querySelector() would iteratively run the the method on all nodes in the list and return the combined result.
This issue does not really have any specific use cases that are worth addressing with a dedicated API. This can be covered by using the Array.filter() method with a callback function that uses a matches-selector API to determine if a given element matches.
Re-resolving this as fixed as the scoped selector proposal in the current draft seems to adequately address the use cases as a side effect of the chosen solution for other cases.