DEV Community

Discussion on: Which elements support shadow DOM?

Collapse
lalitkushwah profile image
LalitKushwah

shadowRoot.activeElement doesn't work in safari. Have you faced this issue?

Collapse
robdodson profile image
Rob Dodson Author

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