Meta: Download support images along their respective WPT tests

This commit is contained in:
Lucas CHOLLET 2024-12-14 17:56:09 -05:00 committed by Tim Ledbetter
parent f29457b61e
commit 325d1bb853
Notes: github-actions[bot] 2024-12-19 09:56:01 +00:00

View file

@ -45,7 +45,7 @@ class LinkedResourceFinder(HTMLParser):
def handle_starttag(self, tag, attrs):
self._tag_stack_.append(tag)
if tag == "script":
if tag in ["script", "img"]:
attr_dict = dict(attrs)
if "src" in attr_dict:
src_values.append(attr_dict["src"])