Re: [w3c/webcomponents] Shadow tree encapsulation and Element Timing (#816)

Right, those are two distinct scenarios. Note that in the case of nested shadow roots, mechanism for (2) must be used in conjunction with (1) because a shadow host which resides inside another shadow root must not be exposed to the global object. There needs to be an explicit opt-in mechanism for the author of shadow root in such a case, or some kind of propagation from shadow tree to the shadow host as we do for focus; e.g. if an element E1 inside a shadow tree S1 inside another shadow root S2 is focused, then E1 is exposed as `S1.activeElement` and `S1.host` is exposed as `S2.activeElement` and finally `document.activeElement` would point to `S2.host`. A similar mechanism is needed here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/816#issuecomment-500624444

Received on Monday, 10 June 2019 23:00:33 UTC