about summary refs log tree commit diff stats
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/attributes.go4
-rw-r--r--html/attributes_test.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index 23559f6..ab575d8 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -61,6 +61,10 @@ func Aria(name, v string) g.Node {
 	return g.Attr("aria-"+name, v)
 }
 
+func As(v string) g.Node {
+	return g.Attr("as", v)
+}
+
 func AutoComplete(v string) g.Node {
 	return g.Attr("autocomplete", v)
 }
diff --git a/html/attributes_test.go b/html/attributes_test.go
index b0f76c1..1d0b312 100644
--- a/html/attributes_test.go
+++ b/html/attributes_test.go
@@ -36,6 +36,7 @@ func TestSimpleAttributes(t *testing.T) {
 		"accept":       Accept,
 		"action":       Action,
 		"alt":          Alt,
+		"as":           As,
 		"autocomplete": AutoComplete,
 		"charset":      Charset,
 		"class":        Class,