mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-12 13:00:31 -05:00
fix abbr to inherit from TextElementBase
This commit is contained in:
@@ -151,7 +151,7 @@ class a(TextElementBase):
|
||||
_add_js_properties(a, "download", "href", "referrerpolicy", "rel", "target", "type")
|
||||
|
||||
|
||||
class abbr(ElementBase):
|
||||
class abbr(TextElementBase):
|
||||
tag = "abbr"
|
||||
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ class TestElements(PyScriptTest):
|
||||
|
||||
def test_abbr(self):
|
||||
abbr = self._create_el_and_basic_asserts("abbr", "some text")
|
||||
assert abbr.text == "some text"
|
||||
assert abbr.text_content() == "some text"
|
||||
|
||||
def test_element_button(self):
|
||||
button = self._create_el_and_basic_asserts("button", "click me")
|
||||
|
||||
Reference in New Issue
Block a user