소스 검색

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