|
|
@@ -216,7 +216,7 @@ this.htmlnano = this.htmlnano || (() => {
|
|
|
}
|
|
|
|
|
|
function removeEmptyInlineElements(doc) {
|
|
|
- doc.querySelectorAll("style, script").forEach(element => {
|
|
|
+ doc.querySelectorAll("style, script, noscript").forEach(element => {
|
|
|
if (!element.textContent.trim()) {
|
|
|
element.remove();
|
|
|
}
|