From 01d8048892e5452f6b95be6782aff396dcb06711 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Fri, 26 Apr 2019 19:27:45 -0600 Subject: [PATCH] Fixed type of span attribute --- attribute/generated.go | 4 ++-- defs.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/attribute/generated.go b/attribute/generated.go index 962e34f..92c1d3e 100644 --- a/attribute/generated.go +++ b/attribute/generated.go @@ -636,10 +636,10 @@ func Sizes(value string) hatmill.Attrib { } // Span creates a "span" attribute -func Span(value string) hatmill.Attrib { +func Span(value int) hatmill.Attrib { return hatmill.Attrib{ Key: "span", - Value: value, + Value: strconv.FormatInt(int64(value), 10), } } diff --git a/defs.json b/defs.json index e9521fe..e7992fd 100644 --- a/defs.json +++ b/defs.json @@ -81,7 +81,7 @@ {"name": "shape", "type": "string"}, {"name": "size", "type": "int"}, {"name": "sizes", "type": "string"}, - {"name": "span", "type": "string"}, + {"name": "span", "type": "int"}, {"name": "spellcheck", "type": "string"}, {"name": "src", "type": "string"}, {"name": "srcdoc", "type": "string"},