From 31f0eb9ad7a3387a33537dfc134efbb1438c4024 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 30 Jul 2026 04:12:12 +0000 Subject: [PATCH] fix: collect script tags nested under html/head/body Only top-level AST nodes were filtered, so normal documents like ' + ) + t.deepEqual(scripts, [{ src: '/head.js' }, { src: '/body.js' }]) +}) + test('detect scripts from twitter iframe', t => { const html = '

our new shiny website has landed https://t.co/KIrhYYcTRx pic.twitter.com/cM0se2UoIg

— microlink.io (@microlinkhq) August 23, 2018
\n\n'