1
0

Add ColSpan and RowSpan attributes (#125)

This commit is contained in:
Markus Wüstenberg 2023-01-17 13:00:16 +01:00 committed by GitHub
parent 866b767b08
commit e11dcad518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -93,6 +93,10 @@ func Cols(v string) g.Node {
return g.Attr("cols", v)
}
func ColSpan(v string) g.Node {
return g.Attr("colspan", v)
}
func Content(v string) g.Node {
return g.Attr("content", v)
}
@ -182,6 +186,10 @@ func Rows(v string) g.Node {
return g.Attr("rows", v)
}
func RowSpan(v string) g.Node {
return g.Attr("rowspan", v)
}
func Src(v string) g.Node {
return g.Attr("src", v)
}

View File

@ -44,6 +44,7 @@ func TestSimpleAttributes(t *testing.T) {
"charset": Charset,
"class": Class,
"cols": Cols,
"colspan": ColSpan,
"content": Content,
"enctype": EncType,
"for": For,
@ -66,6 +67,7 @@ func TestSimpleAttributes(t *testing.T) {
"rel": Rel,
"role": Role,
"rows": Rows,
"rowspan": RowSpan,
"src": Src,
"srcset": SrcSet,
"style": StyleAttr,