fix canvas and caption as elements that have content and fix name typo on figcaption

This commit is contained in:
Fabio Pliger
2024-02-27 17:07:45 -06:00
parent f5f01f6929
commit 7e0689424f

View File

@@ -274,7 +274,7 @@ _add_js_properties(
)
class canvas(ElementBase):
class canvas(TextElementBase):
tag = "canvas"
@@ -282,7 +282,7 @@ class canvas(ElementBase):
_add_js_properties(canvas, "height", "width")
class caption(ElementBase):
class caption(TextElementBase):
tag = "caption"
@@ -402,8 +402,8 @@ class fieldset(TextElementBase):
_add_js_properties(fieldset, "disabled", "form", "name")
class figcation(TextElementBase):
tag = "figcation"
class figcaption(TextElementBase):
tag = "figcaption"
# code tags only have the global attributes ones