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:
Kovid Goyal 2013-10-04 08:52:54 +05:30
parent 6b74d5078e
commit 038a9d99dc

View File

@ -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