Also check <source>

This commit is contained in:
Cat /dev/Nulo 2022-11-25 21:42:02 -03:00
parent 141c2a02bf
commit 7892139e91

View file

@ -27,7 +27,7 @@ function recurseElement(report, rawHtml, el) {
}); });
} }
} }
if (["audio", "video", "img"].includes(el.name)) { if (["audio", "video", "img", "source"].includes(el.name)) {
if (el.attribs.src) { if (el.attribs.src) {
checkUrl(report, rawHtml, "media", el, el.attribs.src); checkUrl(report, rawHtml, "media", el, el.attribs.src);
} else { } else {