about summary refs log tree commit diff stats
path: root/html/attributes_test.go
diff options
context:
space:
mode:
authorJosep Jesus Bigorra Algaba2021-09-07 12:09:57 +0200
committerGitHub2021-09-07 12:09:57 +0200
commit33524d683661bf73fd224a76ec62fb88b2b3c767 (patch)
tree74d512ef310dd1a08ac3238267bc23f1d69b4115 /html/attributes_test.go
parentbd722def2798c8a5a53d0fa87755efefd146198d (diff)
downloadgomponents-33524d683661bf73fd224a76ec62fb88b2b3c767.tar.lz
gomponents-33524d683661bf73fd224a76ec62fb88b2b3c767.tar.zst
gomponents-33524d683661bf73fd224a76ec62fb88b2b3c767.zip
Add loading and srcset HTML attributes (#86)
Useful for `img` and `picture` elements.

Fixes #85.

Co-authored-by: Josep Jesus Bigorra Algaba <josep@prowarehouse.nl>
Diffstat (limited to 'html/attributes_test.go')
-rw-r--r--html/attributes_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/html/attributes_test.go b/html/attributes_test.go
index 1388494..76e3390 100644
--- a/html/attributes_test.go
+++ b/html/attributes_test.go
@@ -51,6 +51,7 @@ func TestSimpleAttributes(t *testing.T) {
 		"href":         Href,
 		"id":           ID,
 		"lang":         Lang,
+		"loading":      Loading,
 		"max":          Max,
 		"maxlength":    MaxLength,
 		"method":       Method,
@@ -65,6 +66,7 @@ func TestSimpleAttributes(t *testing.T) {
 		"role":         Role,
 		"rows":         Rows,
 		"src":          Src,
+		"srcset":       SrcSet,
 		"style":        StyleAttr,
 		"tabindex":     TabIndex,
 		"target":       Target,