1
0

Add Step attribute (#126)

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step

Fixes #120.
This commit is contained in:
Markus Wüstenberg 2023-01-17 13:05:47 +01:00 committed by GitHub
parent e11dcad518
commit 8e4b1319d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -198,6 +198,10 @@ func SrcSet(v string) g.Node {
return g.Attr("srcset", v)
}
func Step(v string) g.Node {
return g.Attr("step", v)
}
func StyleAttr(v string) g.Node {
return g.Attr("style", v)
}

View File

@ -70,6 +70,7 @@ func TestSimpleAttributes(t *testing.T) {
"rowspan": RowSpan,
"src": Src,
"srcset": SrcSet,
"step": Step,
"style": StyleAttr,
"tabindex": TabIndex,
"target": Target,