Explorar el Código

remove empty noscript tags

Gildas hace 7 años
padre
commit
7d81bb0a69
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
 			}