diff --git a/branca/element.py b/branca/element.py index 853ca16..e6f0571 100644 --- a/branca/element.py +++ b/branca/element.py @@ -425,9 +425,9 @@ def _repr_html_(self, **kwargs) -> str: ).format(html=html, width=self.width, ratio=self.ratio) else: iframe = ( - '" ).format(html=html, width=self.width, height=self.height) return iframe diff --git a/tests/test_element.py b/tests/test_element.py new file mode 100644 index 0000000..846619f --- /dev/null +++ b/tests/test_element.py @@ -0,0 +1,44 @@ +""" +Tests for branca.element +------------------------ +""" + +from html.parser import HTMLParser + +import branca.element as elem + + +class _IframeAttrs(HTMLParser): + """Collect the attributes of every