Skip to content

Commit

Permalink
Merge pull request #55 from rontav/feature/firefox-fix
Browse files Browse the repository at this point in the history
Fix: expected node to have parent
  • Loading branch information
devknoll committed Sep 30, 2022
2 parents 4e70d5b + 18b8ccd commit 314c5da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ export function initializePolyfill() {
instance?.disconnect();
}

if (
entry.target.nodeType !== Node.DOCUMENT_NODE &&
entry.target.nodeType !== Node.DOCUMENT_FRAGMENT_NODE &&
entry.target.parentNode === null
) {
continue;
}
if (
entry.type === 'attributes' &&
entry.attributeName &&
Expand Down

0 comments on commit 314c5da

Please sign in to comment.