fix htmltextview bug. fixes #2730

This commit is contained in:
Yann Leboulanger 2006-12-08 18:01:01 +00:00
parent 248010c4a9
commit 8d3e9e62fb
1 changed files with 3 additions and 2 deletions

View File

@ -624,8 +624,9 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
id_ = None
if name == 'a':
#TODO: accesskey, charset, hreflang, rel, rev, tabindex, type
if "href" in attrs: href = attrs.get('href', None)
elif "HREF" in attrs: href = attrs.get('HREF', None)
href = attrs.get('href', None)
if not href:
href = attrs.get('HREF', None)
# Gaim sends HREF instead of href
title = attrs.get('title', attrs.get('rel',href))
type_ = attrs.get('type', None)