From 99eba4dd2125ff881f0035e953032a5b5e360aca Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:43:37 -0800 Subject: [PATCH] Move attr --- elem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elem.go b/elem.go index ba255e5..67346c8 100644 --- a/elem.go +++ b/elem.go @@ -33,6 +33,7 @@ var voidElements = map[string]struct{}{ // attribute represents the "true" value. To represent the "false" value, the attribute has to be omitted. // See https://html.spec.whatwg.org/multipage/indices.html#attributes-3 for reference var booleanAttrs = map[string]struct{}{ + attrs.AllowFullScreen: {}, attrs.Async: {}, attrs.Autofocus: {}, attrs.Checked: {}, @@ -45,7 +46,6 @@ var booleanAttrs = map[string]struct{}{ attrs.Readonly: {}, attrs.Required: {}, attrs.Selected: {}, - attrs.AllowFullScreen: {}, } type Node interface {