From 4206e76c3e4647ea6290f16127764d1a2f337dcf Mon Sep 17 00:00:00 2001 From: Donnatello <11.donnatello@gmail.com> Date: Thu, 19 Oct 2023 09:58:40 +0000 Subject: [PATCH] fix: update TextQuerySelector cache on subtree update (#11200) --- packages/puppeteer-core/src/injected/TextContent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/puppeteer-core/src/injected/TextContent.ts b/packages/puppeteer-core/src/injected/TextContent.ts index 9798b171..1916cf5c 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); }