Browse Source

remove source tag regardless the presence of the src attribute

Gildas 7 năm trước cách đây
mục cha
commit
cfecc4273b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);