-
-
Notifications
You must be signed in to change notification settings - Fork 95
-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
root config doesn't allow Document #75
Labels
bug
Something isn't working
Comments
I think what could be done here is to use the Then, a short-circuit when attempting to find the node that is the root would be to return the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For an embedded iframe, I defined
root: body
but this then fails if I try to find thebody
element sincebody.querySelectorAll('body')
returns an empty array. This scenario seems to be handled for the default case since the ownerDocument is returned for therootDocument
instead of thebody
. It seems like the root config should allow bothDocument
andElement
. Then the default forroot
could be updated todocument
and I think findRootDocument could then be removed.As a workaround, I am passing the
ownerDocument
and ignoring the TypeScript error.The text was updated successfully, but these errors were encountered: