mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
fix attributes of some of the elements added in the previous commit and add embed
This commit is contained in:
@@ -260,7 +260,15 @@ class dd(TextElementBase):
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(dd, 'value')
|
||||
_add_js_properties(dd)
|
||||
|
||||
|
||||
class del_(TextElementBase):
|
||||
tag = "del"
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(del_, 'cite', 'datetime')
|
||||
|
||||
|
||||
class details(TextElementBase):
|
||||
@@ -268,7 +276,7 @@ class details(TextElementBase):
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(details)
|
||||
_add_js_properties(details, 'open')
|
||||
|
||||
|
||||
class dialog(TextElementBase):
|
||||
@@ -279,14 +287,6 @@ class dialog(TextElementBase):
|
||||
_add_js_properties(dialog, 'open')
|
||||
|
||||
|
||||
class datalist(TextElementBase):
|
||||
tag = "datalist"
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(datalist)
|
||||
|
||||
|
||||
class div(TextElementBase):
|
||||
tag = "div"
|
||||
|
||||
@@ -306,8 +306,7 @@ class dt(TextElementBase):
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(dt, 'value')
|
||||
|
||||
_add_js_properties(dt)
|
||||
|
||||
|
||||
class em(TextElementBase):
|
||||
@@ -315,7 +314,15 @@ class em(TextElementBase):
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(em, 'value')
|
||||
_add_js_properties(em)
|
||||
|
||||
|
||||
class embed(TextElementBase):
|
||||
tag = "embed"
|
||||
|
||||
|
||||
# code tags only have the global attributes ones
|
||||
_add_js_properties(embed, 'value')
|
||||
|
||||
|
||||
class img(ElementBase):
|
||||
|
||||
Reference in New Issue
Block a user