@@ -12,9 +12,8 @@ class Canvas(BaseElement):
1212 All I know of the <canvas> element is it's a problem for accessibility.
1313 As I learn more, I might build out this class to enforce as much accessibility as possible in a <canvas>.
1414 """
15-
1615 def __init__ (self , contents : Any = None , ** kwArgs ):
17- super ().__init__ (tag = "canvas" , ** kwArgs )
16+ super ().__init__ (tag = "canvas" , contents = contents , ** kwArgs )
1817
1918
2019class NoScript (BaseElement ):
@@ -23,9 +22,8 @@ class NoScript(BaseElement):
2322 I guess this is like a <div> that can contain general HTML
2423 to be rendered if the rowser doesn't support the desired scripting.
2524 """
26-
2725 def __init__ (self , contents : Any = None , ** kwArgs ):
28- super ().__init__ (tag = "noscript" , ** kwArgs )
26+ super ().__init__ (tag = "noscript" , contents = contents , ** kwArgs )
2927
3028
3129class Script (BaseElement ):
@@ -35,9 +33,8 @@ class Script(BaseElement):
3533 This class exists for the domible user to add scripts to their HTML.
3634 The content should be a string of valid text (probably JS) given the attributes of the element.
3735 """
38-
3936 def __init__ (self , contents : str , ** kwArgs ):
40- super ().__init__ (tag = "script" , ** kwArgs )
37+ super ().__init__ (tag = "script" , contents = contents , ** kwArgs )
4138
4239
4340class Template (BaseElement ):
@@ -46,9 +43,8 @@ class Template(BaseElement):
4643 I guess this is like a <div> that can contain general HTML
4744 to be rendered later using JavaScript
4845 """
49-
5046 def __init__ (self , contents : Any = None , ** kwArgs ):
51- super ().__init__ (tag = "template" , ** kwArgs )
47+ super ().__init__ (tag = "template" , contents = contents , ** kwArgs )
5248
5349
5450## end of file
0 commit comments