else:
title = ''
- if title is None:
- return None
-
for node in head.childNodes:
if node.name == 'meta' and \
('http-equiv' in node.attributes) and \
if not charset:
charset = parser.tokenizer.stream.charEncoding[0]
- if charset or meta_charset:
+ if title and (charset or meta_charset):
title = title.encode(charset or meta_charset)
for node in head.childNodes:
else:
title = ''
- if title is None:
- return None
-
+ if (title is None) and (refresh is None) and (icon is None):
+ return None
return HTMLParser(charset, meta_charset, title, refresh, icon)