- From: Emilio Cobos Álvarez <notifications@github.com>
- Date: Fri, 31 Jan 2020 01:42:59 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 31 January 2020 09:43:03 UTC
It would not different to accessing the root node, but it can be `O(1)` rather that going through all the parents. I just got a case where I wanted to check the activeElement of the containing tree, so `(element.containingShadowRoot || document).activeElement`. -- 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/826#issuecomment-580661035
Received on Friday, 31 January 2020 09:43:03 UTC