- From: Miriam Suzanne <notifications@github.com>
- Date: Mon, 20 Mar 2023 10:37:32 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 20 March 2023 17:37:44 UTC
The CSSWG is working on new 'scoping' functionality, that allows authors to establish both upper (root) and lower boundaries on a 'scoped' selector. The result is that selectors match within a tree fragment starting at the root, and containing all descendants up until a lower boundary selector is matched. It would be great to have this option available for authors in `querySelector()` as well. In [our discussions](https://github.com/w3c/csswg-drafts/issues/7709), @tabatkins [suggested the following](https://github.com/w3c/csswg-drafts/issues/7709#issuecomment-1239930505): > In particular, the current second argument to qS() is, effectively, the upper bound of scoping; we could expand the argument to be an options bag with `{upper: [nodes], lower: [nodes]}` to accommodate both directions. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1172 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1172@github.com>
Received on Monday, 20 March 2023 17:37:44 UTC