From b5d6e0a9647226fe9f7d31e67d0e5dbf0679b962 Mon Sep 17 00:00:00 2001 From: NogNoa <53447424+NogNoa@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:44:42 +0300 Subject: [PATCH] add altimg to link_attrs --- src/calibre/ebooks/oeb/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 74d17da6d3..63f9687763 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -167,7 +167,7 @@ def itercsslinks(raw): yield match.group(1), match.start(1) -_link_attrs = set(html.defs.link_attrs) | {XLINK('href'), 'poster'} +_link_attrs = set(html.defs.link_attrs) | {XLINK('href'), 'poster', 'altimg'} def iterlinks(root, find_links_in_css=True):