mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
use html property rather than accessing _js directly
This commit is contained in:
@@ -46,7 +46,7 @@ class TextElementBase(ElementBase):
|
||||
elif content is None:
|
||||
pass
|
||||
else:
|
||||
self._js.innerHTML = content
|
||||
self.html = content
|
||||
|
||||
class h1(TextElementBase):
|
||||
tag = "h1"
|
||||
|
||||
Reference in New Issue
Block a user