Przeglądaj źródła

remove empty noscript tags

Gildas 7 lat temu
rodzic
commit
7d81bb0a69
1 zmienionych plików z 1 dodań i 1 usunięć
  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();
 			}