diff options
author | Stéphane Legrand | 2025-02-03 14:43:40 +0100 |
---|---|---|
committer | GitHub | 2025-02-03 13:43:40 +0000 |
commit | ceb0e8e26d0c0b2e96952176702efa442af55008 (patch) | |
tree | 26f2804b0d1288c31a62dbd431b3838a8c741165 /html/attributes_test.go | |
parent | c366cfc3574daf7b31e4fa68790c29fc72f7b74b (diff) | |
download | gomponents-ceb0e8e26d0c0b2e96952176702efa442af55008.tar.lz gomponents-ceb0e8e26d0c0b2e96952176702efa442af55008.tar.zst gomponents-ceb0e8e26d0c0b2e96952176702efa442af55008.zip |
Add formxxx attributes (for <input type="submit"> element) (#241)
Hello, A small patch to add the following attributes: - formaction - formenctype - formmethod - formnovalidate - formtarget These attributes are useful in `<input type="submit">` element: [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/submit#additional_attributes)
Diffstat (limited to 'html/attributes_test.go')
-rw-r--r-- | html/attributes_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
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}, |