about summary refs log tree commit diff stats
path: root/html/attributes_test.go
diff options
context:
space:
mode:
authorStéphane Legrand2025-02-06 10:32:15 +0100
committerGitHub2025-02-06 10:32:15 +0100
commit0368e39c137c7f1ab37c84c0787fd6cc9da0c34b (patch)
tree8f6c53ceae4441b8d41929b10eff89173c4a479d /html/attributes_test.go
parentceb0e8e26d0c0b2e96952176702efa442af55008 (diff)
downloadgomponents-0368e39c137c7f1ab37c84c0787fd6cc9da0c34b.tar.lz
gomponents-0368e39c137c7f1ab37c84c0787fd6cc9da0c34b.tar.zst
gomponents-0368e39c137c7f1ab37c84c0787fd6cc9da0c34b.zip
Add 'download' and 'referrerpolicy' attributes for anchor <a> element (#242)
Hello,

A patch to add
[`download`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download)
and
[`referrerpolicy`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#referrerpolicy)
for the anchor `<a>` element.
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 9b668b2..88185b1 100644
--- a/html/attributes_test.go
+++ b/html/attributes_test.go
@@ -60,6 +60,7 @@ func TestSimpleAttributes(t *testing.T) {
 		{Name: "draggable", Func: Draggable},
 		{Name: "enctype", Func: EncType},
 		{Name: "dir", Func: Dir},
+		{Name: "download", Func: Download},
 		{Name: "for", Func: For},
 		{Name: "form", Func: FormAttr},
 		{Name: "formaction", Func: FormAction},
@@ -87,6 +88,7 @@ func TestSimpleAttributes(t *testing.T) {
 		{Name: "popovertargetaction", Func: PopoverTargetAction},
 		{Name: "poster", Func: Poster},
 		{Name: "preload", Func: Preload},
+		{Name: "referrerpolicy", Func: ReferrerPolicy},
 		{Name: "rel", Func: Rel},
 		{Name: "role", Func: Role},
 		{Name: "rows", Func: Rows},