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.
1 file changed, 8 insertions(+), 0 deletions(-)
changed files
M html/attributes.go → html/attributes.go
@@ -40,6 +40,10 @@ func Disabled() g.Node { return g.Attr("disabled") } +func Download(v string) g.Node { + return g.Attr("download", v) +} + func Draggable(v string) g.Node { return g.Attr("draggable", v) }@@ -251,6 +255,10 @@ } func Preload(v string) g.Node { return g.Attr("preload", v) +} + +func ReferrerPolicy(v string) g.Node { + return g.Attr("referrerpolicy", v) } func Rel(v string) g.Node {