From 8b470ab6c8a1b12dd15314ed7b64f98bf5507ced Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] remove _cssText attribute from style element --- src/rebuild.ts | 1 + test/integration.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rebuild.ts b/src/rebuild.ts index 2bba890e..2256c40e 100644 --- a/src/rebuild.ts +++ b/src/rebuild.ts @@ -64,6 +64,7 @@ function buildNode(n: serializedNodeWithId, doc: Document): Node | null { if (isTextarea || isRemoteCss) { const child = doc.createTextNode(value); node.appendChild(child); + continue; } if (tagName === 'iframe' && name === 'src') { continue; diff --git a/test/integration.ts b/test/integration.ts index 8c71101f..387b7ee7 100644 --- a/test/integration.ts +++ b/test/integration.ts @@ -89,7 +89,7 @@ describe('integration tests', () => { await this.server.close(); }); - for (const html of htmls.slice(0, 10)) { + for (const html of htmls) { const title = '[html file]: ' + html.filePath; it(title, async () => { const page: puppeteer.Page = await this.browser.newPage();