mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
Meta: Download support images along their respective WPT tests
This commit is contained in:
parent
f29457b61e
commit
325d1bb853
Notes:
github-actions[bot]
2024-12-19 09:56:01 +00:00
Author: https://github.com/LucasChollet
Commit: 325d1bb853
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2929
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class LinkedResourceFinder(HTMLParser):
|
||||||
|
|
||||||
def handle_starttag(self, tag, attrs):
|
def handle_starttag(self, tag, attrs):
|
||||||
self._tag_stack_.append(tag)
|
self._tag_stack_.append(tag)
|
||||||
if tag == "script":
|
if tag in ["script", "img"]:
|
||||||
attr_dict = dict(attrs)
|
attr_dict = dict(attrs)
|
||||||
if "src" in attr_dict:
|
if "src" in attr_dict:
|
||||||
src_values.append(attr_dict["src"])
|
src_values.append(attr_dict["src"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue