about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorAlan Pearce2025-03-19 10:04:13 +0100
committerGitHub2025-03-19 09:04:13 +0000
commitba5a989334bba5126603ea95fe6602de9a57462f (patch)
tree4a6146d8b24ca7f9b90588e63d3adaa570a2464a /html/attributes.go
parent1e222b67fe5d47aba02827c6746c49a11ba3c743 (diff)
downloadgomponents-ba5a989334bba5126603ea95fe6602de9a57462f.tar.lz
gomponents-ba5a989334bba5126603ea95fe6602de9a57462f.tar.zst
gomponents-ba5a989334bba5126603ea95fe6602de9a57462f.zip
Add `Scope` attribute (#249)
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#scope
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index fb2748b..e9a0b6d 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -277,6 +277,10 @@ func RowSpan(v string) g.Node {
 	return g.Attr("rowspan", v)
 }
 
+func Scope(v string) g.Node {
+	return g.Attr("scope", v)
+}
+
 func Src(v string) g.Node {
 	return g.Attr("src", v)
 }