mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-17 06:20:27 +00:00
Fix treating data: URIs in srcset values as links
This commit is contained in:
parent
7ba4053710
commit
27f22ae17a
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ class LinkFinder:
|
|||
elif attr == 'archive':
|
||||
for url in value.split(','):
|
||||
self.found_url(url, name, base, lineno, column)
|
||||
elif attr == 'srcset':
|
||||
elif attr == 'srcset' and not value.startswith('data:'):
|
||||
for img_candidate in value.split(','):
|
||||
try:
|
||||
url = img_candidate.split()[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue