1
0

Add "checked" bool attribute

Fixes #127.
This commit is contained in:
Markus Wüstenberg 2023-05-11 11:22:01 +02:00
parent 4f9709afcc
commit 4248e85def
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,10 @@ func AutoPlay() g.Node {
return g.Attr("autoplay") return g.Attr("autoplay")
} }
func Checked() g.Node {
return g.Attr("checked")
}
func Controls() g.Node { func Controls() g.Node {
return g.Attr("controls") return g.Attr("controls")
} }

View File

@ -14,6 +14,7 @@ func TestBooleanAttributes(t *testing.T) {
"async": Async, "async": Async,
"autofocus": AutoFocus, "autofocus": AutoFocus,
"autoplay": AutoPlay, "autoplay": AutoPlay,
"checked": Checked,
"controls": Controls, "controls": Controls,
"defer": Defer, "defer": Defer,
"disabled": Disabled, "disabled": Disabled,