diff --git a/packages/puppeteer-core/src/injected/TextContent.ts b/packages/puppeteer-core/src/injected/TextContent.ts index 9798b171d66..1916cf5c798 100644 --- a/packages/puppeteer-core/src/injected/TextContent.ts +++ b/packages/puppeteer-core/src/injected/TextContent.ts @@ -146,6 +146,7 @@ export const createTextContent = (root: Node): TextContent => { textChangeObserver.observe(root, { childList: true, characterData: true, + subtree: true, }); observedNodes.add(root); }