Hints: Use the src html attribute in addition to href in _resolve_url.
See issue #286
This commit is contained in:
parent
582e3e57e9
commit
d0bed460eb
@ -476,9 +476,13 @@ class HintManager(QObject):
|
||||
Return:
|
||||
A QUrl with the absolute URL, or None.
|
||||
"""
|
||||
try:
|
||||
text = elem['href']
|
||||
except KeyError:
|
||||
text = None
|
||||
for attr in ('href', 'src'):
|
||||
if attr in elem:
|
||||
text = elem[attr]
|
||||
break
|
||||
|
||||
if text is None:
|
||||
return None
|
||||
|
||||
url = QUrl(text)
|
||||
|
Loading…
Reference in New Issue
Block a user