Add Step attribute (#126)
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step Fixes #120.
This commit is contained in:
parent
e11dcad518
commit
8e4b1319d1
@ -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)
|
||||
}
|
||||
|
@ -70,6 +70,7 @@ func TestSimpleAttributes(t *testing.T) {
|
||||
"rowspan": RowSpan,
|
||||
"src": Src,
|
||||
"srcset": SrcSet,
|
||||
"step": Step,
|
||||
"style": StyleAttr,
|
||||
"tabindex": TabIndex,
|
||||
"target": Target,
|
||||
|
Loading…
Reference in New Issue
Block a user