about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorJulien Tant2024-06-05 16:54:52 -0700
committerJulien Tant2024-06-05 16:54:52 -0700
commit600b6c34df94ad0917970669680629260394ce7d (patch)
treecf9feed4255a60b6af2913814ef1d6cef09c0dc7 /html/attributes.go
parent5fa128bc8f245386539edf6002874aa4c2979ea6 (diff)
downloadgomponents-600b6c34df94ad0917970669680629260394ce7d.tar.lz
gomponents-600b6c34df94ad0917970669680629260394ce7d.tar.zst
gomponents-600b6c34df94ad0917970669680629260394ce7d.zip
add script's integrity and crossorigin attributes
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index b38dd95..8988ab3 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -24,6 +24,10 @@ func Controls() g.Node {
 	return g.Attr("controls")
 }
 
+func CrossOrigin(v string) g.Node {
+	return g.Attr("crossorigin", v)
+}
+
 func Defer() g.Node {
 	return g.Attr("defer")
 }
@@ -130,6 +134,10 @@ func ID(v string) g.Node {
 	return g.Attr("id", v)
 }
 
+func Integrity(v string) g.Node {
+	return g.Attr("integrity", v)
+}
+
 func Lang(v string) g.Node {
 	return g.Attr("lang", v)
 }