fix script tag

This commit is contained in:
maddalax 2024-10-11 11:39:47 -05:00
parent 80d3538d87
commit 72e3383e75

View file

@ -103,6 +103,17 @@ func (n *CustomNode) String() string {
}
}
if str == "h.Script(" {
if len(n.Attrs) > 0 {
for _, attr := range n.Attrs {
if attr.key == "h.Src" {
str = str + fmt.Sprintf(`"%s"`, attr.value) + ","
n.Attrs = make([]Attr, 0)
}
}
}
}
booleanAttributes := []string{
"h.AllowFullscreen",
"h.Async",