about summary refs log tree commit diff stats
path: root/html/elements.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2021-06-18 09:39:47 +0200
committerGitHub2021-06-18 09:39:47 +0200
commitec86ca5c71fecf21590b872737fbadd9aa3e158b (patch)
treeb6de2ad1bd978d0c7f8d25ee089b2f190f2fd1e1 /html/elements.go
parent0efc71d6f326efc88d25688f50f83b948b40fc38 (diff)
downloadgomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.tar.lz
gomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.tar.zst
gomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.zip
Add video element and related attributes (#84)
Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
Diffstat (limited to 'html/elements.go')
-rw-r--r--html/elements.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/elements.go b/html/elements.go
index 918f6bd..79db67f 100644
--- a/html/elements.go
+++ b/html/elements.go
@@ -426,3 +426,7 @@ func U(children ...g.Node) g.Node {
 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))
+}