microsoft / tabster

Web Application Keyboard Navigation Tools
https://tabster.io
MIT License
118 stars 36 forks source link

Shadow DOM: support `activeElement` in shadow roots #336

Open spmonahan opened 8 months ago

spmonahan commented 8 months ago

When the active element for a document is inside a shadow root document.activeElement points to the host element rather than the actually focused element. To access the actually focused element the ShadowRoot.activeElement must be inspected.

Example of the issue