fix htmltextview bug. fixes #2730
This commit is contained in:
parent
248010c4a9
commit
8d3e9e62fb
|
@ -624,8 +624,9 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
|
||||||
id_ = None
|
id_ = None
|
||||||
if name == 'a':
|
if name == 'a':
|
||||||
#TODO: accesskey, charset, hreflang, rel, rev, tabindex, type
|
#TODO: accesskey, charset, hreflang, rel, rev, tabindex, type
|
||||||
if "href" in attrs: href = attrs.get('href', None)
|
href = attrs.get('href', None)
|
||||||
elif "HREF" in attrs: href = attrs.get('HREF', None)
|
if not href:
|
||||||
|
href = attrs.get('HREF', None)
|
||||||
# Gaim sends HREF instead of href
|
# Gaim sends HREF instead of href
|
||||||
title = attrs.get('title', attrs.get('rel',href))
|
title = attrs.get('title', attrs.get('rel',href))
|
||||||
type_ = attrs.get('type', None)
|
type_ = attrs.get('type', None)
|
||||||
|
|
Loading…
Reference in New Issue