mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
HTML Input: Handle the poster attribute of the <video> tag
HTML Input: Images linked by the poster attribute of the <video> tag are now recognized and processed.
This commit is contained in:
parent
6b74d5078e
commit
038a9d99dc
@ -107,8 +107,7 @@ def iterlinks(root, find_links_in_css=True):
|
||||
:param root: A valid lxml.etree element.
|
||||
'''
|
||||
assert etree.iselement(root)
|
||||
link_attrs = set(html.defs.link_attrs)
|
||||
link_attrs.add(XLINK('href'))
|
||||
link_attrs = set(html.defs.link_attrs) | {XLINK('href'), 'poster'}
|
||||
|
||||
for el in root.iter():
|
||||
attribs = el.attrib
|
||||
|
Loading…
x
Reference in New Issue
Block a user