code: explicitly call init in some named constructors
[nit.git] / lib / html / html.nit
index 6cb192b..b5f5529 100644 (file)
@@ -123,7 +123,7 @@ class HTMLTag
 
        # Create a HTML elements with the specifed type and attributes.
        init with_attrs(tag: String, attrs: Map[String, String]) do
-               self.tag = tag
+               init(tag)
                self.attrs = attrs
        end