Explorar o código

remove source tag regardless the presence of the src attribute

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
cfecc4273b
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

@@ -472,7 +472,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					}
 				});
 			}
-			const videoSourceElements = this.doc.querySelectorAll("video[src], video > source[src]");
+			const videoSourceElements = this.doc.querySelectorAll("video[src], video > source");
 			this.stats.set("processed", "video sources", videoSourceElements.length);
 			if (this.options.removeVideoSrc) {
 				this.stats.set("discarded", "video sources", videoSourceElements.length);