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:
|
Return:
|
||||||
A QUrl with the absolute URL, or None.
|
A QUrl with the absolute URL, or None.
|
||||||
"""
|
"""
|
||||||
try:
|
text = None
|
||||||
text = elem['href']
|
for attr in ('href', 'src'):
|
||||||
except KeyError:
|
if attr in elem:
|
||||||
|
text = elem[attr]
|
||||||
|
break
|
||||||
|
|
||||||
|
if text is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
url = QUrl(text)
|
url = QUrl(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user