Skip to content

Commit

Permalink
Merge pull request #83 from Rudd-O/master
Browse files Browse the repository at this point in the history
Track links from <source src=> tag attributes as well
  • Loading branch information
jensens authored Dec 16, 2021
2 parents db9043d + 238e0e2 commit 9dd2e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/77.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Track integrity of video and audio files in HTML source tags.
3 changes: 3 additions & 0 deletions plone/app/linkintegrity/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def handle_starttag(self, tag, attrs):
self.links.extend(search_attr('href', attrs))
if tag == 'img':
self.links.extend(search_attr('src', attrs))
if tag == 'source':
self.links.extend(search_attr('src', attrs))
self.links.extend(search_attr('srcset', attrs))


def search_attr(name, attrs):
Expand Down

0 comments on commit 9dd2e42

Please sign in to comment.