We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c059dbf commit 3938584Copy full SHA for 3938584
packages/rrweb/src/utils.ts
@@ -541,5 +541,6 @@ export function shadowHostInDom(n: Node): boolean {
541
export function inDom(n: Node): boolean {
542
const doc = n.ownerDocument;
543
if (!doc) return false;
544
- return dom.contains(doc, n) || shadowHostInDom(n);
+ // fix: https://github.com/rrweb-io/rrweb/issues/1682
545
+ return doc.contains(n) || shadowHostInDom(n);
546
}
0 commit comments