Merge pull request #175 from vbanos/whatwg-outlinks

Use urlcanon.whatwg in extracted outlinks
This commit is contained in:
Noah Levitt 2019-10-31 15:00:31 -07:00 committed by GitHub
commit 3c85cb34c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -594,8 +594,8 @@ class Browser:
if ('result' in message and 'result' in message['result']
and 'value' in message['result']['result']):
if message['result']['result']['value']:
return frozenset(
message['result']['result']['value'].split('\n'))
return frozenset([str(urlcanon.whatwg(link)) for link in
message['result']['result']['value'].split('\n')])
else:
# no links found
return frozenset()