New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get activeElement from Shadow DOM #1061
Get activeElement from Shadow DOM #1061
Conversation
✅ Tests for the commit 0c6f462 have passed. See details: |
return isDomElement(doc.activeElement) ? doc.activeElement : doc.body; | ||
var el = isDomElement(doc.activeElement) ? doc.activeElement : doc.body; | ||
|
||
while (el && el.shadowRoot) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to create nested shadowRoots?
Can active element be non isDomElement
?
If it is true, then add tests for following cases.
❌ Tests for the commit 638bbc2 have failed. See details: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, wait for green tests
❌ Tests for the commit 638bbc2 have failed. See details: |
Tests are ok (besides a blinking test), so I'll merge this |
* Get activeElement from Shadow DOM * Remove isDomElement check; add a test
\cc @churkin @miherlosev