diff options
Diffstat (limited to 'attr')
-rw-r--r-- | attr/simple.go | 8 | ||||
-rw-r--r-- | attr/simple_test.go | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/attr/simple.go b/attr/simple.go index e286c26..d7d4ab8 100644 --- a/attr/simple.go +++ b/attr/simple.go @@ -12,10 +12,18 @@ func AutoComplete(v string) g.Node { return g.Attr("autocomplete", v) } +func Charset(v string) g.Node { + return g.Attr("charset", v) +} + func Class(v string) g.Node { return g.Attr("class", v) } +func Content(v string) g.Node { + return g.Attr("content", v) +} + func Form(v string) g.Node { return g.Attr("form", v) } diff --git a/attr/simple_test.go b/attr/simple_test.go index 784561a..eb2cfe3 100644 --- a/attr/simple_test.go +++ b/attr/simple_test.go @@ -13,7 +13,9 @@ func TestSimpleAttributes(t *testing.T) { cases := map[string]func(string) g.Node{ "accept": attr.Accept, "autocomplete": attr.AutoComplete, + "charset": attr.Charset, "class": attr.Class, + "content": attr.Content, "form": attr.Form, "height": attr.Height, "href": attr.Href, |