[kiddo] fix wrong gaim xhtml HREF tag. fixes #2644

This commit is contained in:
Yann Leboulanger 2006-11-29 21:57:35 +00:00
parent 3b22e878b2
commit 8b8bb86c8e
1 changed files with 4 additions and 2 deletions

View File

@ -623,8 +623,10 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
#id_ = attrs.get('id',None)
id_ = None
if name == 'a':
#TODO: accesskey, charset, hreflang, rel, rev, tabindex, type
href = attrs.get('href', None)
#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)
# Gaim sends HREF instead of href
title = attrs.get('title', attrs.get('rel',href))
type_ = attrs.get('type', None)
tag = self._create_url(href, title, type_, id_)