Add video element and related attributes (#84) Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
1 file changed, 15 insertions(+), 11 deletions(-)
changed files
M html/attributes_test.go → html/attributes_test.go
@@ -11,16 +11,19 @@ ) func TestBooleanAttributes(t *testing.T) { cases := map[string]func() g.Node{ - "async": Async, - "autofocus": AutoFocus, - "autoplay": AutoPlay, - "controls": Controls, - "defer": Defer, - "disabled": Disabled, - "multiple": Multiple, - "readonly": ReadOnly, - "required": Required, - "selected": Selected, + "async": Async, + "autofocus": AutoFocus, + "autoplay": AutoPlay, + "controls": Controls, + "defer": Defer, + "disabled": Disabled, + "loop": Loop, + "multiple": Multiple, + "muted": Muted, + "playsinline": PlaysInline, + "readonly": ReadOnly, + "required": Required, + "selected": Selected, } for name, fn := range cases {@@ -55,8 +58,9 @@ "min": Min, "minlength": MinLength, "name": Name, "pattern": Pattern, + "placeholder": Placeholder, + "poster": Poster, "preload": Preload, - "placeholder": Placeholder, "rel": Rel, "role": Role, "rows": Rows,