You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an embedded iframe, I defined root: body but this then fails if I try to find the body element since body.querySelectorAll('body') returns an empty array. This scenario seems to be handled for the default case since the ownerDocument is returned for the rootDocument instead of the body. It seems like the root config should allow both Document and Element. Then the default for root could be updated to document and I thinkfindRootDocument 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:
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: