shadow root use the correct dom in iframe (#1037)

Co-authored-by: luocq3 <luocq3@asiainfo.com>
This commit is contained in:
luocongqiu
2026-04-01 12:00:00 +08:00
committed by GitHub
parent fcb5c036fc
commit df5d547446

View File

@@ -320,7 +320,7 @@ export default class MutationBuffer {
); );
} }
if (hasShadowRoot(n)) { if (hasShadowRoot(n)) {
this.shadowDomManager.addShadowRoot(n.shadowRoot, document); this.shadowDomManager.addShadowRoot(n.shadowRoot, this.doc);
} }
}, },
onIframeLoad: (iframe, childSn) => { onIframeLoad: (iframe, childSn) => {