add helper for closedby attribute (on dialog tag)
2 files changed, 5 insertions(+), 0 deletions(-)
changed files
M html/attributes.go → html/attributes.go
@@ -20,6 +20,10 @@ func Checked() g.Node { return g.Attr("checked") } +func ClosedBy(v string) g.Node { + return g.Attr("closedby", v) +} + func Controls() g.Node { return g.Attr("controls") }
M html/attributes_test.go → html/attributes_test.go
@@ -53,6 +53,7 @@ {Name: "autocomplete", Func: AutoComplete}, {Name: "charset", Func: Charset}, {Name: "cite", Func: CiteAttr}, {Name: "class", Func: Class}, + {Name: "closedby", Func: ClosedBy}, {Name: "cols", Func: Cols}, {Name: "colspan", Func: ColSpan}, {Name: "content", Func: Content},