Hints: Use the src html attribute in addition to href in _resolve_url.

See issue #286
This commit is contained in:
Johannes Altmanninger 2014-12-12 18:40:12 +01:00
parent 582e3e57e9
commit d0bed460eb

View File

@ -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)