Переглянути джерело

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