From ec86ca5c71fecf21590b872737fbadd9aa3e158b Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 18 Jun 2021 09:39:47 +0200 Subject: Add video element and related attributes (#84) Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.--- html/elements.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'html/elements.go') 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)) +} -- cgit 1.4.1