committed by
GitHub
parent
a0e6641505
commit
3cdcb8a12b
@@ -270,7 +270,7 @@ export default class MutationBuffer {
|
|||||||
// ensure shadowHost is a Node, or doc.contains will throw an error
|
// ensure shadowHost is a Node, or doc.contains will throw an error
|
||||||
const notInDoc =
|
const notInDoc =
|
||||||
!this.doc.contains(n) &&
|
!this.doc.contains(n) &&
|
||||||
(rootShadowHost === null || !this.doc.contains(rootShadowHost));
|
(!rootShadowHost || !this.doc.contains(rootShadowHost));
|
||||||
if (!n.parentNode || notInDoc) {
|
if (!n.parentNode || notInDoc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user