DEV Community

Discussion on: Which elements support shadow DOM?

Collapse
 
robdodson profile image
Rob Dodson

Hm you may need to use document.activeElement. that will always point at the shadow host. That is by design to preserve encapsulation.