single-file-core 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -664,7 +664,7 @@ class Processor {
664
664
 
665
665
  insertVideoPosters() {
666
666
  if (this.options.posters) {
667
- this.doc.querySelectorAll("video[src], video > source[src]").forEach(element => {
667
+ this.doc.querySelectorAll("video, video > source").forEach(element => {
668
668
  let videoElement;
669
669
  if (element.tagName == "VIDEO") {
670
670
  videoElement = element;