Skip to content

Commit

Permalink
Handle contained by checks in documents other than the primary document
Browse files Browse the repository at this point in the history
  • Loading branch information
edave64 committed Jul 18, 2024
1 parent 2c46366 commit e4bb670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blot/abstract/parent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class ParentBlot extends ShadowBlot implements Parent {
node.parentNode != null &&
// @ts-expect-error Fix me later
node.tagName !== 'IFRAME' &&
document.body.compareDocumentPosition(node) &
(node.ownerDocument ?? document).body.compareDocumentPosition(node) &
Node.DOCUMENT_POSITION_CONTAINED_BY
) {
return;
Expand Down

0 comments on commit e4bb670

Please sign in to comment.