瀏覽代碼

remove empty noscript tags

Gildas 7 年之前
父節點
當前提交
7d81bb0a69
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/single-file/htmlnano.js

+ 1 - 1
lib/single-file/htmlnano.js

@@ -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();
 			}