Просмотр исходного кода

remove hidden inputs when "remove hidden elements" is enabled (fix #484)

Gildas 5 лет назад
Родитель
Сommit
2bfb694fbf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -715,7 +715,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 				}
 				}
 			});
 			});
 			this.doc.querySelectorAll("link[rel*=stylesheet][rel*=alternate][title],link[rel*=stylesheet]:not([href]),link[rel*=stylesheet][href=\"\"]").forEach(element => element.remove());
 			this.doc.querySelectorAll("link[rel*=stylesheet][rel*=alternate][title],link[rel*=stylesheet]:not([href]),link[rel*=stylesheet][href=\"\"]").forEach(element => element.remove());
-			if (this.options.compressHTML) {
+			if (this.options.removeHiddenElements) {
 				this.doc.querySelectorAll("input[type=hidden]").forEach(element => element.remove());
 				this.doc.querySelectorAll("input[type=hidden]").forEach(element => element.remove());
 			}
 			}
 			if (!this.options.saveFavicon) {
 			if (!this.options.saveFavicon) {