- From: Tab Atkins Jr. <notifications@github.com>
- Date: Thu, 17 Aug 2017 16:53:25 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 17 August 2017 16:53:48 UTC
You only "accidentally" access nodes that you explicitly ask for. It doesn't give you access to anything you don't already have access to; `qS(":host")` is the same as just following the `.host` pointer on your shadow tree; `qs("::slotted(...)")` is the same as doing some tree-walking on your own. Closed shadow trees don't expose themselves via selectors, so won't expose themselves this way either. I don't know of any other way to "accidentally" access anything outside of your tree; any selectors other than those explicitly mentioned are always limited to just your current tree. Care would have to be taken with `::part()` so that closed trees don't return anything, but that's it, I think. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/463#issuecomment-323131490
Received on Thursday, 17 August 2017 16:53:48 UTC