all repos — gomponents @ ec86ca5c71fecf21590b872737fbadd9aa3e158b

HTML components in pure Go

Add video element and related attributes (#84) Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.

Markus Wüstenberg
commit

ec86ca5c71fecf21590b872737fbadd9aa3e158b

parent

0efc71d6f326efc88d25688f50f83b948b40fc38

1 file changed, 4 insertions(+), 0 deletions(-)

changed files
M html/elements.gohtml/elements.go
@@ -426,3 +426,7 @@
func Var(children ...g.Node) g.Node { return g.El("var", g.Group(children)) } + +func Video(children ...g.Node) g.Node { + return g.El("video", g.Group(children)) +}