class Ilustr(WLElement):
+ SHOULD_HAVE_ID = True
+
EPUB_TAG = HTML_TAG = 'img'
def get_html_attr(self, builder):
return {
'src': file_name,
- 'alt': self.attrib['alt'],
- 'title': self.attrib['alt'],
+ 'alt': self.attrib.get('alt', ''),
+ 'title': self.attrib.get('alt', ''),
}
get_epub_attr = get_html_attr