From f50975846dd84815f3a8c577e262c218ed9c415b Mon Sep 17 00:00:00 2001 From: Sven Knebel Date: Tue, 24 Jul 2018 18:52:40 +0200 Subject: [PATCH] add parsing for iframe.u-*[src] and tests (fix #116) --- mf2py/parse_property.py | 2 +- test/examples/test_src_equiv.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mf2py/parse_property.py b/mf2py/parse_property.py index 7c561e9..4044594 100644 --- a/mf2py/parse_property.py +++ b/mf2py/parse_property.py @@ -45,7 +45,7 @@ def url(el, dict_class, img_with_alt, base_url=''): if prop_value is not None: return prop_value if prop_value is None: - prop_value = get_attr(el, "src", check_name=("audio", "video", "source")) + prop_value = get_attr(el, "src", check_name=("audio", "video", "source", "iframe")) if prop_value is None: prop_value = get_attr(el, "poster", check_name="video") if prop_value is None: diff --git a/test/examples/test_src_equiv.html b/test/examples/test_src_equiv.html index c25fdaa..1edcd7d 100644 --- a/test/examples/test_src_equiv.html +++ b/test/examples/test_src_equiv.html @@ -27,5 +27,13 @@

David

+ + +
+

David

+ +