HTMLRewriter not detecting content of `<noscript>`

Hey folks, hope y’all doing great!

I noticed that HTMLRewriter api does detect elements inside <noscript></noscript> tags. Note that following code does not delete the div inside noscript tag.

Just wondering whether this is a bug. If not, what would be the best approach to removing content of noscript tag without loading the body into worker memory.

Thank you,
Lavneet