From 32ad318ce8e77ae55e5cf68f9217271fb719333c Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 29 Sep 2022 12:46:36 +0200 Subject: Add EncType html attribute (#109) --- html/attributes.go | 4 ++++ html/attributes_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/html/attributes.go b/html/attributes.go index 5a3dc3a..7733457 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -217,3 +217,7 @@ func Value(v string) g.Node { func Width(v string) g.Node { return g.Attr("width", v) } + +func EncType(v string) g.Node { + return g.Attr("enctype", v) +} diff --git a/html/attributes_test.go b/html/attributes_test.go index 665dc94..50f0b53 100644 --- a/html/attributes_test.go +++ b/html/attributes_test.go @@ -45,6 +45,7 @@ func TestSimpleAttributes(t *testing.T) { "class": Class, "cols": Cols, "content": Content, + "enctype": EncType, "for": For, "form": FormAttr, "height": Height, -- cgit 1.4.1