Fixed type of span attribute

This commit is contained in:
Brandon Dyck 2019-04-26 19:27:45 -06:00
parent 9a4d859c7c
commit 01d8048892
2 changed files with 3 additions and 3 deletions

View File

@ -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),
}
}

View File

@ -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"},