Simplify available elements (#55) `a`, `form`, `img`, `input`, `label`, `option`, `progress`, `select`, and `textarea` are now just regular elements (without helper parameters), because: - Sometimes the use case doesn't fit (`a` as anchor without href, for example) - There's no reason these are special among the others, so streamlining them makes sense Also added new attributes `action`, `alt`, `for`, `method` that I had somehow missed.
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M html/attributes_test.go → html/attributes_test.go
@@ -34,11 +34,14 @@ func TestSimpleAttributes(t *testing.T) { cases := map[string]func(string) g.Node{ "accept": Accept, + "action": Action, + "alt": Alt, "autocomplete": AutoComplete, "charset": Charset, "class": Class, "cols": Cols, "content": Content, + "for": For, "form": FormAttr, "height": Height, "href": Href,@@ -46,6 +49,7 @@ "id": ID, "lang": Lang, "max": Max, "maxlength": MaxLength, + "method": Method, "min": Min, "minlength": MinLength, "name": Name,