about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--html/attributes.go20
-rw-r--r--html/attributes_test.go5
2 files changed, 25 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index e4cd796..6da541d 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -141,10 +141,30 @@ func For(v string) g.Node {
 	return g.Attr("for", v)
 }
 
+func FormAction(v string) g.Node {
+	return g.Attr("formaction", v)
+}
+
 func FormAttr(v string) g.Node {
 	return g.Attr("form", v)
 }
 
+func FormEncType(v string) g.Node {
+	return g.Attr("formenctype", v)
+}
+
+func FormMethod(v string) g.Node {
+	return g.Attr("formmethod", v)
+}
+
+func FormNoValidate() g.Node {
+	return g.Attr("formnovalidate")
+}
+
+func FormTarget(v string) g.Node {
+	return g.Attr("formtarget", v)
+}
+
 func Height(v string) g.Node {
 	return g.Attr("height", v)
 }
diff --git a/html/attributes_test.go b/html/attributes_test.go
index cfb64b5..9b668b2 100644
--- a/html/attributes_test.go
+++ b/html/attributes_test.go
@@ -21,6 +21,7 @@ func TestBooleanAttributes(t *testing.T) {
 		{Name: "controls", Func: Controls},
 		{Name: "defer", Func: Defer},
 		{Name: "disabled", Func: Disabled},
+		{Name: "formnovalidate", Func: FormNoValidate},
 		{Name: "loop", Func: Loop},
 		{Name: "multiple", Func: Multiple},
 		{Name: "muted", Func: Muted},
@@ -61,6 +62,10 @@ func TestSimpleAttributes(t *testing.T) {
 		{Name: "dir", Func: Dir},
 		{Name: "for", Func: For},
 		{Name: "form", Func: FormAttr},
+		{Name: "formaction", Func: FormAction},
+		{Name: "formenctype", Func: FormEncType},
+		{Name: "formmethod", Func: FormMethod},
+		{Name: "formtarget", Func: FormTarget},
 		{Name: "height", Func: Height},
 		{Name: "hidden", Func: Hidden},
 		{Name: "href", Func: Href},