mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
fix canvas and caption as elements that have content and fix name typo on figcaption
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user