Explorar o código

remove hidden input elements

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
9718a90d34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -364,7 +364,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					element.remove();
 				}
 			});
-			this.doc.querySelectorAll("meta[http-equiv=\"content-security-policy\"").forEach(element => element.remove());
+			this.doc.querySelectorAll("meta[http-equiv=\"content-security-policy\"], input[type=hidden]").forEach(element => element.remove());
 			this.doc.querySelectorAll("a[ping]").forEach(element => element.removeAttribute("ping"));
 			if (this.options.removeScripts) {
 				this.onEventAttributeNames.forEach(attributeName => this.doc.querySelectorAll("[" + attributeName + "]").forEach(element => element.removeAttribute(attributeName)));