all repos — gomponents @ ba5a989334bba5126603ea95fe6602de9a57462f

HTML components in pure Go

Add `Scope` attribute (#249) https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#scope

Alan Pearce
commit

ba5a989334bba5126603ea95fe6602de9a57462f

parent

1e222b67fe5d47aba02827c6746c49a11ba3c743

2 files changed, 5 insertions(+), 0 deletions(-)

changed files
M html/attributes.gohtml/attributes.go
@@ -277,6 +277,10 @@ func RowSpan(v string) g.Node {
return g.Attr("rowspan", v) } +func Scope(v string) g.Node { + return g.Attr("scope", v) +} + func Src(v string) g.Node { return g.Attr("src", v) }
M html/attributes_test.gohtml/attributes_test.go
@@ -93,6 +93,7 @@ {Name: "rel", Func: Rel},
{Name: "role", Func: Role}, {Name: "rows", Func: Rows}, {Name: "rowspan", Func: RowSpan}, + {Name: "scope", Func: Scope}, {Name: "slot", Func: SlotAttr}, {Name: "src", Func: Src}, {Name: "srcset", Func: SrcSet},