Add `Scope` attribute (#249) https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#scope
2 files changed, 5 insertions(+), 0 deletions(-)
changed files
M html/attributes.go → html/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.go → html/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},